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 verify.c,1.41,1.42


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/engine verify.c,1.41,1.42
Date: Thu, 19 Jun 2003 03:52:17 -0400

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

Modified Files:
        verify.c 
Log Message:


Enable the verifier's debug mode by default.


Index: verify.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/verify.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -r1.41 -r1.42
*** verify.c    11 Mar 2003 15:13:57 -0000      1.41
--- verify.c    19 Jun 2003 07:52:14 -0000      1.42
***************
*** 566,570 ****
   * Bailout routines for various kinds of verification failure.
   */
! /*#define     IL_VERIFY_DEBUG*/
  #ifdef IL_VERIFY_DEBUG
  #define       VERIFY_REPORT() \
--- 566,572 ----
   * Bailout routines for various kinds of verification failure.
   */
! #ifndef IL_CONFIG_REDUCE_CODE
! #define       IL_VERIFY_DEBUG
! #endif
  #ifdef IL_VERIFY_DEBUG
  #define       VERIFY_REPORT() \
***************
*** 575,579 ****
                                                (unsigned long)(offset + 
ILMethod_RVA(method) + \
                                                                                
code->headerSize), \
!                                               insn->name, __FILE__, 
__LINE__); \
                        } while (0)
  #else
--- 577,581 ----
                                                (unsigned long)(offset + 
ILMethod_RVA(method) + \
                                                                                
code->headerSize), \
!                                               (insn ? insn->name : "none"), 
__FILE__, __LINE__); \
                        } while (0)
  #else
***************
*** 615,627 ****
        ILUInt32 insnSize;
        int insnType;
!       ILUInt32 offset;
        ILEngineStackItem *stack;
        ILUInt32 stackSize;
  #ifdef IL_VERIFY_DEBUG
!       const ILOpcodeInfo *insn;
        #define MAIN_OPCODE_TABLE       ILMainOpcodeTable
        #define PREFIX_OPCODE_TABLE     ILPrefixOpcodeTable
  #else
!       const ILOpcodeSmallInfo *insn;
        #define MAIN_OPCODE_TABLE       ILMainOpcodeSmallTable
        #define PREFIX_OPCODE_TABLE     ILPrefixOpcodeSmallTable
--- 617,629 ----
        ILUInt32 insnSize;
        int insnType;
!       ILUInt32 offset = 0;
        ILEngineStackItem *stack;
        ILUInt32 stackSize;
  #ifdef IL_VERIFY_DEBUG
!       const ILOpcodeInfo *insn = 0;
        #define MAIN_OPCODE_TABLE       ILMainOpcodeTable
        #define PREFIX_OPCODE_TABLE     ILPrefixOpcodeTable
  #else
!       const ILOpcodeSmallInfo *insn = 0;
        #define MAIN_OPCODE_TABLE       ILMainOpcodeSmallTable
        #define PREFIX_OPCODE_TABLE     ILPrefixOpcodeSmallTable
***************
*** 1119,1123 ****
                ILMethodCode code;
                ILMethodGetCode(method,&code);
!               fprintf(stderr, "%s::%s - method is too big (%d%s bytes)\n",
                                                        
ILClass_Name(ILMethod_Owner(method)),
                                                        ILMethod_Name(method),
--- 1121,1126 ----
                ILMethodCode code;
                ILMethodGetCode(method,&code);
!               fprintf(stderr,
!                       "%s::%s - method is too big to be converted (%d%s 
bytes)\n",
                                                        
ILClass_Name(ILMethod_Owner(method)),
                                                        ILMethod_Name(method),





reply via email to

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