I understand that a class will have a VTABLE, if it contains at-least one virtual function. I would like to see the contents of the VTABLE. Is there a way to display it ?
Specifically, is there an option in gcc to display the VTABLE of a class?
If the input file is say
layout.cpp, the commandgcc -fdump-class-hierarchy layout.cppwill produce a filelayout.cpp.class. This file will display the VTABLE along with some other useful information.