What is the level of optimization you set for compiler? Lots of local
vars can't be retrieved.
Let's see if we can get the qm via pointer:
frame 1
p *((struct fm_block*)0x7f40f262f000)
frame 0
p ((struct fm_block*)0x7f40f262f000)->free_hash[hash]
Daniel
On 21/09/15 15:56, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
Let's try on frame 1:
frame 1
info locals
p *qm
p *f
(gdb) frame 1
#1 fm_free (qmp=0x7f40f262f000, p=0x7f40f31d9d78) at mem/f_malloc.c:609
609 in mem/f_malloc.c
(gdb) info locals
f = 0x7f40f31d9d60
__FUNCTION__ = "fm_free"
(gdb) p *qm
value has been optimized out
(gdb) p *f
$1 = {size = 23896, u = {nxt_free = 0x0, reserved = 0}, prv_free = 0x0}
-- juha
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio -
http://www.asipto.com
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin -
http://asipto.com/u/kat