cgdb打印脚本

printscript.gdb

点击查看代码
define plist
 
set $x=13
while $x--
	p PCur->mData
set PCur=(PCur->mNext)
	end
end
 


------------

document  plist
	to list the list by travel 
end
PCur为链表头节点,根据x的值将会顺序打印链表的所有mData,如果mData是数组则会将数组的内容打印出来。
posted @ 2021-11-08 13:43  上官鸿信の  阅读(25)  评论(0编辑  收藏  举报