Basically, I want to get typeid(*this).name(), i.e. the real type of this.
typeid(*this).name()
this
I want to get this in GDB (without modifying the source code). I
Use ptype command, like this:
ptype
(gdb) ptype 42 type = int