[PATCH] [WineDump]: fully dump the compiland (V3) structure out of .pdb files
Eric Pouech
eric.pouech at orange.fr
Tue May 27 14:43:26 CDT 2008
A+
---
tools/winedump/msc.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/tools/winedump/msc.c b/tools/winedump/msc.c
index f96895a..dae1c1a 100644
--- a/tools/winedump/msc.c
+++ b/tools/winedump/msc.c
@@ -1198,13 +1198,19 @@ int codeview_dump_symbols(const void* root, unsigned long size)
break;
case S_MSTOOL_V3: /* info about tool used to create CU */
{
- const unsigned short* ptr = ((const unsigned short*)sym) + 2;
-
+ const unsigned short* ptr = ((const unsigned short*)sym) + 2;
+ const char* x1;
+ const char* x2 = (const char*)&ptr[9];
/* FIXME: what are all those values for ? */
printf("\tTool V3 ??? %x-%x-%x-%x-%x-%x-%x-%x-%x %s\n",
ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr[7],
- ptr[8], (const char*)(&ptr[9]));
- dump_data((const void*)sym, sym->generic.len + 2, "\t\t");
+ ptr[8], x2);
+ while (*(x1 = x2 + strlen(x2) + 1))
+ {
+ x2 = x1 + strlen(x1) + 1;
+ if (!*x2) break;
+ printf("\t\t%s: %s\n", x1, x2);
+ }
}
break;
More information about the wine-patches
mailing list