Module: wine Branch: master Commit: 13585ddd710b2efc12822e5a8f72876b39782d15 URL: http://source.winehq.org/git/wine.git/?a=commit;h=13585ddd710b2efc12822e5a8f...
Author: Eric Pouech eric.pouech@orange.fr Date: Tue May 27 21:43:26 2008 +0200
winedump: Fully dump the compiland (V3) structure out of .pdb files.
---
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 7fb77c4..60814c9 100644 --- a/tools/winedump/msc.c +++ b/tools/winedump/msc.c @@ -1189,13 +1189,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;