调试打印结构体

(gdb) p arr
$8 = (struct rte_fbarray *) 0x1000000b0
(gdb) p *arr
$9 = {name = '\000' <repeats 63 times>, count = 0, len = 0, elt_sz = 0, data = 0x0, rwlock = {cnt = 0}}
(gdb) set print pretty on
(gdb) p *arr
$10 = {
name = '\000' <repeats 63 times>,
count = 0,
len = 0,
elt_sz = 0,
data = 0x0,
rwlock = {
cnt = 0
}
}

posted @ 2024-04-28 17:06  slark_yuxj  阅读(12)  评论(0编辑  收藏  举报