GDB run command to set stop point

command
在程序中断时,让其自动运行一些别的命令,这有利于自动化调试,对基于GDB的自动化调试是一个强大的支持
commands [bnum]
	...command-list...
	end
为断点号bnum的断点写一个命令列表,当程序被该断点停住时,gdb会依次运行命令列表中的命令

Guess you like

Origin blog.csdn.net/qq_42823109/article/details/102538377
Recommended