Eric Pouech : winedump: Add support for dumping filestatic Codeview records.

Alexandre Julliard julliard at winehq.org
Tue Aug 24 15:56:12 CDT 2021


Module: wine
Branch: master
Commit: 36961eef16d1c98051b5da6ebeb1a013b5af156d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=36961eef16d1c98051b5da6ebeb1a013b5af156d

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Tue Aug 24 11:12:20 2021 +0200

winedump: Add support for dumping filestatic Codeview records.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/wine/mscvpdb.h | 10 ++++++++++
 tools/winedump/msc.c   |  8 ++++++++
 2 files changed, 18 insertions(+)

diff --git a/include/wine/mscvpdb.h b/include/wine/mscvpdb.h
index 766f20d2732..a72e0b58158 100644
--- a/include/wine/mscvpdb.h
+++ b/include/wine/mscvpdb.h
@@ -1881,6 +1881,16 @@ union codeview_symbol
         unsigned int            invocations[0]; /* array of count entries, paires with funcs */
 #endif
     } function_list_v3;
+
+    struct
+    {
+        unsigned short int      len;
+        unsigned short int      id;
+        cv_typ_t                typind;
+        unsigned int            modOffset;
+        unsigned short          varflags;
+        char                    name[1];
+    } file_static_v3;
 };
 
 enum BinaryAnnotationOpcode
diff --git a/tools/winedump/msc.c b/tools/winedump/msc.c
index 62152ed6ea0..65e6beb1006 100644
--- a/tools/winedump/msc.c
+++ b/tools/winedump/msc.c
@@ -1800,6 +1800,14 @@ BOOL codeview_dump_symbols(const void* root, unsigned long size)
                    sym->heap_alloc_site_v3.index);
             break;
 
+        case S_FILESTATIC:
+            printf("File-static V3 '%s' type:%04x modOff:%08x flags:%s\n",
+                   sym->file_static_v3.name,
+                   sym->file_static_v3.typind,
+                   sym->file_static_v3.modOffset,
+                   get_varflags(sym->file_static_v3.varflags));
+            break;
+
         default:
             printf("\n\t\t>>> Unsupported symbol-id %x sz=%d\n", sym->generic.id, sym->generic.len + 2);
             dump_data((const void*)sym, sym->generic.len + 2, "  ");




More information about the wine-cvs mailing list