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

Time:11-20

(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?

CodePudding user response:

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

(gdb) print *inputInfo
  • Related