[英]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:例如,当我想检查 inputInfo 的值时,它会打印出:
0x7fffffffced0
And its type is 'SObjectRecInput'.它的类型是'SObjectRecInput'。
How to actually print out its value?如何实际打印出它的价值?
inputInfo
appears to have a pointer type, so dereference it: inputInfo
似乎有一个指针类型,所以取消引用它:
(gdb) print *inputInfo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.