Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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

(gdb) print *inputInfo
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading