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
精彩评论