[PATCH] [WineDump]: added support for latest versions of Codeview (VC70)

Eric Pouech eric.pouech at orange.fr
Wed Apr 30 14:26:04 CDT 2008


- also fixed a field which was too large

A+
---

 include/wine/mscvpdb.h |    3 ++-
 tools/winedump/pdb.c   |    5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)


diff --git a/include/wine/mscvpdb.h b/include/wine/mscvpdb.h
index 40174f9..306d893 100644
--- a/include/wine/mscvpdb.h
+++ b/include/wine/mscvpdb.h
@@ -1810,7 +1810,8 @@ typedef struct _PDB_SYMBOLS
     DWORD       unknown;
     DWORD       hash1_file;
     DWORD       hash2_file;
-    DWORD       gsym_file;
+    WORD        gsym_file;
+    WORD        unknown1;
     DWORD       module_size;
     DWORD       offset_size;
     DWORD       hash_size;
diff --git a/tools/winedump/pdb.c b/tools/winedump/pdb.c
index a703369..1d9fce0 100644
--- a/tools/winedump/pdb.c
+++ b/tools/winedump/pdb.c
@@ -170,6 +170,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
     case 0:            /* VC 4.0 */
     case 19960307:     /* VC 5.0 */
     case 19970606:     /* VC 6.0 */
+    case 19990903:     /* VC 7.0 */
         break;
     default:
         printf("-Unknown symbol info version %d\n", symbols->version);
@@ -180,7 +181,8 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
            "\tunknown:        %08x\n"
            "\thash1_file:     %08x\n"
            "\thash2_file:     %08x\n"
-           "\tgsym_file:      %08x\n"
+           "\tgsym_file:      %04x\n"
+           "\tunknown1:       %04x\n"
            "\tmodule_size:    %08x\n"
            "\toffset_size:    %08x\n"
            "\thash_size:      %08x\n"
@@ -192,6 +194,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
            symbols->hash1_file,
            symbols->hash2_file,
            symbols->gsym_file,
+           symbols->unknown1,
            symbols->module_size,
            symbols->offset_size,
            symbols->hash_size,





More information about the wine-patches mailing list