Using gdb with GMP variables

Posted by Full Decent on Stack Overflow See other posts from Stack Overflow or by Full Decent
Published on 2010-05-22T20:30:49Z Indexed on 2010/05/22 20:41 UTC
Read the original article Hit count: 326

Filed under:
|
|

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 can do to get more information about the value stored in retval?

© Stack Overflow or respective owner

Related posts about c

    Related posts about gdb