(gdb) p &next
Can't take address of "next" which isn't an lvalue.
(gdb) p *next
value has been optimized out
你是直接打印的next的地址啊,计算机怎么知道你要打印哪个结构体的next?修改为p &a.next