automated cast to different data type possible?

Tom Tromey tromey@redhat.com
Wed May 11 21:00:00 GMT 2011


>>>>> "Klaus" == Klaus Rudolph <lts-rudolph@gmx.de> writes:

Klaus> Base* ptr1=new A;
Klaus> Base* ptr2=new B;

Klaus> Now I want to debug ptr1. print returns only the output for base. OK
Klaus> But I want to see, the type is a object of class A.

You want "set print object on".

Tom



More information about the Gdb mailing list