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

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

[Dotgnu-pnet-commits] CVS: pnet/ildasm ildasm_main.c, 1.4, 1.5 ildasm_in


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/ildasm ildasm_main.c, 1.4, 1.5 ildasm_internal.h, 1.6, 1.7 ildasm.1, 1.2, 1.3
Date: Fri, 01 Aug 2003 06:06:05 -0400

Update of /cvsroot/dotgnu-pnet/pnet/ildasm
In directory subversions:/tmp/cvs-serv27147/ildasm

Modified Files:
        ildasm_main.c ildasm_internal.h ildasm.1 
Log Message:
add the --resolve-all option to ildasm


Index: ildasm_main.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ildasm/ildasm_main.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** ildasm_main.c       13 Dec 2002 06:48:00 -0000      1.4
--- ildasm_main.c       1 Aug 2003 10:06:02 -0000       1.5
***************
*** 32,35 ****
--- 32,36 ----
        {"-d", 'd', 0, 0, 0},
        {"-r", 'r', 0, 0, 0},
+       {"-R", 'R',     0, 0, 0},
        {"-t", 't', 0, 0, 0},
        {"-q", 'q', 0, 0, 0},
***************
*** 47,50 ****
--- 48,54 ----
                "--real-offsets   or    -r",
                "Display real file offsets instead of virtual addresses."},
+       {"--resolve-all", 'R', 0,
+               "--resolve-all    or    -R",
+               "Resolve all dependencies during loading."},
        {"--show-tokens", 't', 0,
                "--show-tokens    or    -t",
***************
*** 99,103 ****
  static int dumpFile(const char *filename, FILE *stream,
                                        int closeStream, ILContext *context,
!                                       int dumpSections, int realOffsets);
  static void dumpWholeFile(const char *filename, FILE *stream);
  
--- 103,107 ----
  static int dumpFile(const char *filename, FILE *stream,
                                        int closeStream, ILContext *context,
!                                       int dumpSections, int flags);
  static void dumpWholeFile(const char *filename, FILE *stream);
  
***************
*** 171,174 ****
--- 175,184 ----
                        break;
  
+                       case 'R':
+                       {
+                               flags |= ILDASM_RESOLVE_ALL;
+                       }
+                       break;
+ 
                        case '?':
                        {
***************
*** 480,484 ****
                                                        IL_LOADFLAG_FORCE_32BIT 
|
                                                        
IL_LOADFLAG_PRE_VALIDATE |
!                                                       IL_LOADFLAG_NO_RESOLVE |
                                                        (dumpSections ? 
IL_LOADFLAG_NO_METADATA : 0));
        if(loadError != 0)
--- 490,495 ----
                                                        IL_LOADFLAG_FORCE_32BIT 
|
                                                        
IL_LOADFLAG_PRE_VALIDATE |
!                                                       ((flags & 
ILDASM_RESOLVE_ALL)
!                                                               ? 0 : 
IL_LOADFLAG_NO_RESOLVE) |
                                                        (dumpSections ? 
IL_LOADFLAG_NO_METADATA : 0));
        if(loadError != 0)

Index: ildasm_internal.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ildasm/ildasm_internal.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** ildasm_internal.h   30 Jan 2003 10:57:46 -0000      1.6
--- ildasm_internal.h   1 Aug 2003 10:06:02 -0000       1.7
***************
*** 41,44 ****
--- 41,45 ----
  #define       ILDASM_NO_IL                            (1 << 10)
  #define       ILDASM_INSTRUCTION_BYTES        (1 << 11)
+ #define ILDASM_RESOLVE_ALL                    (1 << 12)
  
  /*

Index: ildasm.1
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ildasm/ildasm.1,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ildasm.1    13 Dec 2002 06:48:00 -0000      1.2
--- ildasm.1    1 Aug 2003 10:06:02 -0000       1.3
***************
*** 51,54 ****
--- 51,59 ----
  the file with separate tools.
  .TP
+ .B \-R, --resolve-all
+ \fBildasm\fR does not resolve image data by default, which may cause
+ problems with valuetype markers. The `\fB-R\fR` option enables resolution
+ while loading.
+ .TP
  .B \-t, --show-tokens
  Show the token codes of program elements within the disassembly output.





reply via email to

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