dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/ilasm ilasm_output.c,1.18,1.19


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/ilasm ilasm_output.c,1.18,1.19
Date: Fri, 19 Sep 2003 01:14:19 -0400

Update of /cvsroot/dotgnu-pnet/pnet/ilasm
In directory subversions:/tmp/cvs-serv22047/ilasm

Modified Files:
        ilasm_output.c 
Log Message:


Parameter information was being added to the debug symbol table when
it should not have been.


Index: ilasm_output.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ilasm/ilasm_output.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** ilasm_output.c      14 Jul 2003 11:31:34 -0000      1.18
--- ilasm_output.c      19 Sep 2003 05:14:17 -0000      1.19
***************
*** 71,74 ****
--- 71,75 ----
        char *name;
        ILUInt32 index;
+       int isParam;
        struct _tagLocalInfo *next;
  
***************
*** 1361,1365 ****
   * Add a local variable name and index to the current method.
   */
! static void AddLocalName(char *name, ILUInt32 index)
  {
        LocalInfo *local = (LocalInfo *)ILMalloc(sizeof(LocalInfo));
--- 1362,1366 ----
   * Add a local variable name and index to the current method.
   */
! static void AddLocalName(char *name, ILUInt32 index, int isParam)
  {
        LocalInfo *local = (LocalInfo *)ILMalloc(sizeof(LocalInfo));
***************
*** 1372,1375 ****
--- 1373,1377 ----
        local->index = index;
        local->next = localNames;
+       local->isParam = isParam;
        localNames = local;
  }
***************
*** 1394,1398 ****
                if(vars->name)
                {
!                       AddLocalName(vars->name, localIndex);
                }
                ++localIndex;
--- 1396,1400 ----
                if(vars->name)
                {
!                       AddLocalName(vars->name, localIndex, 0);
                }
                ++localIndex;
***************
*** 1419,1423 ****
                if(vars->name)
                {
!                       AddLocalName(vars->name, paramIndex);
                }
                ++paramIndex;
--- 1421,1425 ----
                if(vars->name)
                {
!                       AddLocalName(vars->name, paramIndex, 1);
                }
                ++paramIndex;
***************
*** 1757,1760 ****
--- 1759,1767 ----
        while(local != 0)
        {
+               if(local->isParam)
+               {
+                       local = local->next;
+                       continue;
+               }
                if(!len || len >= (sizeof(buf) - IL_META_COMPRESS_MAX_SIZE * 4) 
||
                   local->block != lastBlock)
***************
*** 2217,2221 ****
  void ILAsmOutDeclareVarName(char *name, ILUInt32 index)
  {
!       AddLocalName(name, index);
  }
  
--- 2224,2228 ----
  void ILAsmOutDeclareVarName(char *name, ILUInt32 index)
  {
!       AddLocalName(name, index, 0);
  }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]