开发者

Using gdb with GMP variables

开发者 https://www.devze.com 2023-01-01 05:04 出处:网络
I am debugging some C code with gdb. My program has a variable of type mpz_t * retval. If I run the command

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

精彩评论

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