开发者

Naming breakpoints in GDB

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜