Commit 872c61ff authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedump: Add support for dumping trampoline codeview records.

parent 45d4021f
...@@ -1501,6 +1501,18 @@ union codeview_symbol ...@@ -1501,6 +1501,18 @@ union codeview_symbol
{ {
unsigned short int len; unsigned short int len;
unsigned short int id; unsigned short int id;
unsigned short trampType; /* 0: incremental, 1: branchisland */
unsigned short cbThunk;
unsigned int offThunk;
unsigned int offTarget;
unsigned short sectThunk;
unsigned short sectTarget;
} trampoline_v3;
struct
{
unsigned short int len;
unsigned short int id;
unsigned int offset; unsigned int offset;
unsigned short segment; unsigned short segment;
unsigned char flags; unsigned char flags;
......
...@@ -1566,6 +1566,16 @@ BOOL codeview_dump_symbols(const void* root, unsigned long size) ...@@ -1566,6 +1566,16 @@ BOOL codeview_dump_symbols(const void* root, unsigned long size)
sym->objname_v1.signature, p_string(&sym->objname_v1.p_name)); sym->objname_v1.signature, p_string(&sym->objname_v1.p_name));
break; break;
case S_TRAMPOLINE:
printf("Trampoline V3 kind:%u %04x:%08x#%x -> %04x:%08x\n",
sym->trampoline_v3.trampType,
sym->trampoline_v3.sectThunk,
sym->trampoline_v3.offThunk,
sym->trampoline_v3.cbThunk,
sym->trampoline_v3.sectTarget,
sym->trampoline_v3.offTarget);
break;
case S_LABEL32_ST: case S_LABEL32_ST:
printf("Label V1 '%s' in '%s' (%04x:%08x)\n", printf("Label V1 '%s' in '%s' (%04x:%08x)\n",
p_string(&sym->label_v1.p_name), p_string(&sym->label_v1.p_name),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment