typedef struct mem_list* cns_detail_encode_result[encode_type_max]; (gdb) p &((struct mem_list**)0x7fffb4557950)[0] # & 取对应点的位置 $29 = (struct mem_list **) 0x7fffb4557950 (gdb) p ((struct mem_list**)0x7fffb4557950) + 0 $30 = (struct mem_list **) 0x7fffb4557950 (gdb) (gdb) (gdb) p &((struct mem_list**)0x7fffb4557950)[1] $31 = (struct mem_list **) 0x7fffb4557958 (gdb) p ((struct mem_list**)0x7fffb4557950) + 1 $32 = (struct mem_list **) 0x7fffb4557958 (gdb) (gdb) (gdb) p ((struct mem_list**)0x7fffb4557950)[1] # 没有& 取对应地址的值 $33 = (struct mem_list *) 0x0
标签:0x7fffb4557950,struct,mem,0x7fffb4557958,list,gdb,简记,随笔,指针 From: https://www.cnblogs.com/stellarbin/p/17624513.html