zl程序教程

您现在的位置是:首页 >  其他

当前栏目

gdbinit ptype offsetof

2023-04-18 15:38:06 时间

(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)