Naming Breakpoints in GDB

Can a breakpoint be called in GDB, so when it hits, GDB gives some name instead of a number? (IE hit breakpoint !!! VERYIMPORTANTBREAKPOINT !!! in the main () method)

+3
source share
1 answer

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

eg.

break main
commands
print "!!!VERYIMPORTANTBREAKPOINT!!! in method main()"
end
+2
source

All Articles