How to print out actual object value instead of memory address in gdb?

(gdb) print inputInfo
$8 = (SObjectRecInput *) 0x7fffffffced0

For example, when I want to check the value of inputInfo, it prints out:

0x7fffffffced0

And its type is ‘SObjectRecInput’.

How to actually print out its value?

>Solution :

inputInfo appears to have a pointer type, so dereference it:

(gdb) print *inputInfo

Leave a Reply