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

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

[Dotgnu-pnet-commits] CVS: pnet/engine null_coder.c,1.19,1.20 cvmc.c,1.


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/engine null_coder.c,1.19,1.20 cvmc.c,1.38,1.39 cvmc_except.c,1.8,1.9 verify_except.c,1.8,1.9
Date: Mon, 26 May 2003 01:47:05 -0400

Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv9297/engine

Modified Files:
        null_coder.c cvmc.c cvmc_except.c verify_except.c 
Log Message:
Add a new ILCoder function ILCoderSetStackTrace() and use it fix the 
stack trace bugs


Index: null_coder.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/null_coder.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** null_coder.c        8 May 2003 01:34:15 -0000       1.19
--- null_coder.c        26 May 2003 05:47:03 -0000      1.20
***************
*** 327,330 ****
--- 327,333 ----
  {
  }
+ static void Coder_SetStackTrace(ILCoder *coder)
+ {
+ }
  static void Coder_Rethrow(ILCoder *coder, ILException *exception)
  {
***************
*** 457,460 ****
--- 460,464 ----
        Coder_SetupExceptions,
        Coder_Throw,
+       Coder_SetStackTrace,
        Coder_Rethrow,
        Coder_Jsr,

Index: cvmc.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/cvmc.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -r1.38 -r1.39
*** cvmc.c      15 May 2003 06:02:07 -0000      1.38
--- cvmc.c      26 May 2003 05:47:03 -0000      1.39
***************
*** 429,432 ****
--- 429,433 ----
        CVMCoder_SetupExceptions,
        CVMCoder_Throw,
+       CVMCoder_SetStackTrace,
        CVMCoder_Rethrow,
        CVMCoder_Jsr,

Index: cvmc_except.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/cvmc_except.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** cvmc_except.c       16 Apr 2003 00:39:34 -0000      1.8
--- cvmc_except.c       26 May 2003 05:47:03 -0000      1.9
***************
*** 81,85 ****
  static void CVMCoder_Throw(ILCoder *coder, int inCurrentMethod)
  {
-       CVMP_OUT_NONE(COP_PREFIX_SET_STACK_TRACE);
        if(inCurrentMethod)
        {
--- 81,84 ----
***************
*** 91,94 ****
--- 90,101 ----
        }
        CVM_ADJUST(-1);
+ }
+ 
+ /*
+  * Output a stacktrace instruction.
+  */
+ static void CVMCoder_SetStackTrace(ILCoder *coder)
+ {
+       CVMP_OUT_NONE(COP_PREFIX_SET_STACK_TRACE);
  }
  

Index: verify_except.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/verify_except.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** verify_except.c     8 May 2003 01:34:15 -0000       1.8
--- verify_except.c     26 May 2003 05:47:03 -0000      1.9
***************
*** 198,202 ****
        ILCoderCallCtor(coder, &callInfo, ctor);
  
!       /* Throw the object */
        ILCoderThrow(coder, hasExceptions);
  }
--- 198,203 ----
        ILCoderCallCtor(coder, &callInfo, ctor);
  
!       /* Set the stack trace & throw the object */
!       ILCoderSetStackTrace(coder);
        ILCoderThrow(coder, hasExceptions);
  }
***************
*** 218,221 ****
--- 219,223 ----
                   the object to those handlers.  Otherwise throw directly
                   to the calling method */
+               ILCoderSetStackTrace(coder);
                ILCoderThrow(coder, (exceptions != 0));
                stackSize = 0;





reply via email to

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