开发者

Using gdb with GMP variables

I am debugging some C code with gdb. My program has a variable of type mpz_t * retval. If I run the command

print *retval

I get the output

$23 = {{
    _mp_alloc = 6, 
    _mp_size = 5, 
    _mp_d = 0x1001008d0
}}

Is there anything else I ca开发者_运维知识库n do to get more information about the value stored in retval?


Try these:

(gdb) set print object on
(gdb) set print pretty on
(gdb) ptype *retval
(gdb) print *retval

What else do you you want to know?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜