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 cvm_except.c,1.23,1.24 throw.c,1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/engine cvm_except.c,1.23,1.24 throw.c,1.5,1.6
Date: Thu, 26 Jun 2003 06:34:54 -0400

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

Modified Files:
        cvm_except.c throw.c 
Log Message:


Add the stack trace to exception objects that are created
by "ILExecThreadThrowSystem".


Index: cvm_except.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/cvm_except.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** cvm_except.c        15 May 2003 05:06:34 -0000      1.23
--- cvm_except.c        26 Jun 2003 10:34:51 -0000      1.24
***************
*** 73,77 ****
   * Set the stack trace for an exception to the current call context.
   */
! static void SetExceptionStackTrace(ILExecThread *thread, ILObject *object)
  {
        ILClass *classInfo;
--- 73,77 ----
   * Set the stack trace for an exception to the current call context.
   */
! void _ILSetExceptionStackTrace(ILExecThread *thread, ILObject *object)
  {
        ILClass *classInfo;
***************
*** 396,400 ****
  #if defined(IL_CONFIG_REFLECTION) && defined(IL_CONFIG_DEBUG_LINES)
        COPY_STATE_TO_THREAD();
!       SetExceptionStackTrace(thread, stacktop[-1].ptrValue);
        RESTORE_STATE_FROM_THREAD();
  #endif
--- 396,400 ----
  #if defined(IL_CONFIG_REFLECTION) && defined(IL_CONFIG_DEBUG_LINES)
        COPY_STATE_TO_THREAD();
!       _ILSetExceptionStackTrace(thread, stacktop[-1].ptrValue);
        RESTORE_STATE_FROM_THREAD();
  #endif

Index: throw.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/throw.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** throw.c     15 May 2003 06:02:07 -0000      1.5
--- throw.c     26 Jun 2003 10:34:51 -0000      1.6
***************
*** 47,50 ****
--- 47,52 ----
  }
  
+ void _ILSetExceptionStackTrace(ILExecThread *thread, ILObject *object);
+ 
  void ILExecThreadThrowSystem(ILExecThread *thread, const char *typeName,
                                                         const char 
*resourceName)
***************
*** 92,95 ****
--- 94,98 ----
                object = ILExecThreadNew(thread, typeName, "(T)V");
        }
+       _ILSetExceptionStackTrace(thread, object);
        if(!ILExecThreadHasException(thread))
        {





reply via email to

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