5

I have a core dump of a C++ program which was built and run with the GNU toolchain. I can reproduce the executable maybe. How can I find a list of all the vtable pointers, by class name?

Andres Jaan Tack
  • 22,566
  • 11
  • 59
  • 78

1 Answers1

3

You can get vtable layouts using -fdump-class-hierarchy when compiling. This might help when inspecting objects. You may need set print vtbl on in gdb.

Brett Hale
  • 21,653
  • 2
  • 61
  • 90