winedump: Dump MSC's S_UNAMESPACE entries.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-10-13 15:17:14 +02:00 committed by Alexandre Julliard
parent bad368750e
commit 768bb93fd7
2 changed files with 23 additions and 0 deletions

View File

@ -1958,6 +1958,20 @@ union codeview_symbol
unsigned short varflags;
char name[1];
} file_static_v3;
struct
{
unsigned short int len;
unsigned short int id;
struct p_string pname;
} unamespace_v2;
struct
{
unsigned short int len;
unsigned short int id;
unsigned char name[1];
} unamespace_v3;
};
enum BinaryAnnotationOpcode
@ -2031,6 +2045,7 @@ enum BinaryAnnotationOpcode
#define S_GTHREAD32_ST 0x100f
#define S_FRAMEPROC 0x1012
#define S_COMPILE2_ST 0x1013
#define S_UNAMESPACE_ST 0x1029
#define S_OBJNAME 0x1101
#define S_THUNK32 0x1102

View File

@ -1839,6 +1839,14 @@ BOOL codeview_dump_symbols(const void* root, unsigned long size)
get_varflags(sym->file_static_v3.varflags));
break;
case S_UNAMESPACE_ST:
printf("UNameSpace V2 '%s'\n", p_string(&sym->unamespace_v2.pname));
break;
case S_UNAMESPACE:
printf("UNameSpace V3 '%s'\n", sym->unamespace_v3.name);
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, " ");