Pergunta

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?

Foi útil?

Solução

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?

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top