开发者

Naming breakpoints in GDB

开发者 https://www.devze.com 2023-04-05 02:19 出处:网络
Is there anyway开发者_Go百科 to name a breakpoint in GDB so when it is hit GDB gives some name instead of a number? (IE hit breakpoint !!!VERYIMPORTANTBREAKPOINT!!! in method main())no, there is no wa

Is there anyway开发者_Go百科 to name a breakpoint in GDB so when it is hit GDB gives some name instead of a number? (IE hit breakpoint !!!VERYIMPORTANTBREAKPOINT!!! in method main())


no, there is no way to do this, but you can use the 'commands' command, and the print command.

e.g.

break main
commands
print "!!!VERYIMPORTANTBREAKPOINT!!! in method main()"
end
0

精彩评论

暂无评论...
验证码 换一张
取 消