How to list class methods in gdb?
You can use ptype. Suppose I add these lines to your example: A alpha; B beta; Now in gdb I can ask for a description of a class type (or an instance of one): (gdb) ptype alpha type = class A { public: virtual void foo(); } (gdb) ptype A type = class A { … Read more