c - printing structure element in gdb -
(gdb) p/d &(((pcm_pkt_t*)0)->rx_timestamp) $12 = 236
what print? print size of rx_timestamp
or value? offline analysis netbsd kernel.
here address of member of structure located @ address 0 (the ((pcm_pkt_t*)0)
). have offset of member inside structure (member offset address of member - start address of structure 0 here).
Comments
Post a Comment