Ben
Ben

Reputation: 2937

Dumping VTable Offsets on Windows

In order to validate a theory I have, I'd like to see (preferably via windbg) a dump of the offsets for a given classes vtable. For example, given a type I can use "dt Type" to get a dump of the offsets in the type

dt CFoo
   +0x000 __VFN_Table : Ptr32
   +0x004 _dwSomething : Int4B

I'm looking for something like

dvtable CFoo
   +0x000 VirtualFunction1
   +0x004 VirtualFunction2

I am also open to external tools that analyze the symbols if necessary

Upvotes: 2

Views: 2787

Answers (1)

pharring
pharring

Reputation: 2046

Use the "-v" (verbose) option.

dt -v CFoo
    +0x000 __VFN_table    Ptr32 to 3 entries
    <function> ~CFoo      void ( void )
    <function> VirtualFunction1      void ( void )
    <function> VirtualFunction2      void ( void )

Upvotes: 4

Related Questions