gdbinit ptype offsetof

(gdb) p offsetof( struct net_device,mtu)
$1 = (unsigned int *) 0x240 <irq_stack_union+576>
(gdb) shell cat ~/.gdbinit
macro define offsetof(t, f) &((t *) 0)->f)
(gdb)

posted on 2023-03-14 17:09  爱新觉罗玄烨  阅读(47)  评论(0)    收藏  举报

导航