winedump: Add preliminary dumping of 0x1136 and 0x1137 symbols.
This commit is contained in:
parent
ff1767863f
commit
cff33cedf5
|
@ -1729,6 +1729,8 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root
|
|||
case 0x112c:
|
||||
case S_FUNCINFO_V2:
|
||||
case S_SECUCOOKIE_V3:
|
||||
case S_SECTINFO_V3:
|
||||
case S_SUBSECTINFO_V3:
|
||||
TRACE("Unsupported symbol id %x\n", sym->generic.id);
|
||||
break;
|
||||
|
||||
|
|
|
@ -1617,6 +1617,8 @@ union codeview_symbol
|
|||
#define S_MSTOOL_V3 0x1116 /* compiler command line options and build information */
|
||||
#define S_PUB_FUNC1_V3 0x1125 /* didn't get the difference between the two */
|
||||
#define S_PUB_FUNC2_V3 0x1127
|
||||
#define S_SECTINFO_V3 0x1136
|
||||
#define S_SUBSECTINFO_V3 0x1137
|
||||
#define S_SECUCOOKIE_V3 0x113A
|
||||
|
||||
/* ======================================== *
|
||||
|
|
|
@ -1252,6 +1252,25 @@ int codeview_dump_symbols(const void* root, unsigned long size)
|
|||
sym->ssearch_v1.segment, sym->ssearch_v1.offset);
|
||||
break;
|
||||
|
||||
case S_SECTINFO_V3:
|
||||
printf("\tSSection Info: seg=%04x ?=%04x rva=%08x size=%08x attr=%08x %s\n",
|
||||
*(unsigned short*)((const char*)sym + 4),
|
||||
*(unsigned short*)((const char*)sym + 6),
|
||||
*(unsigned*)((const char*)sym + 8),
|
||||
*(unsigned*)((const char*)sym + 12),
|
||||
*(unsigned*)((const char*)sym + 16),
|
||||
(const char*)sym + 20);
|
||||
break;
|
||||
|
||||
case S_SUBSECTINFO_V3:
|
||||
printf("\tSSubSection Info: addr=%04x:%08x size=%08x attr=%08x %s\n",
|
||||
*(unsigned short*)((const char*)sym + 16),
|
||||
*(unsigned*)((const char*)sym + 12),
|
||||
*(unsigned*)((const char*)sym + 4),
|
||||
*(unsigned*)((const char*)sym + 8),
|
||||
(const char*)sym + 18);
|
||||
break;
|
||||
|
||||
default:
|
||||
printf(">>> Unsupported symbol-id %x sz=%d\n", sym->generic.id, sym->generic.len + 2);
|
||||
dump_data((const void*)sym, sym->generic.len + 2, " ");
|
||||
|
|
Loading…
Reference in New Issue