September 2008
Intermediate to advanced
280 pages
6h 31m
English
Each breakpoint (which includes breakpoints, watchpoints, and catchpoints) you create is assigned a unique integer identifier, starting at 1. This identifier is used to perform various operations on the breakpoint. The debugger also includes a means of listing all your breakpoints and their properties.
When you create a breakpoint, GDB tells you the number assigned to it. For instance, the breakpoint set in this example
(gdb) break main Breakpoint 2 at 0x8048824: file efh.c, line 16.
was assigned the number 2. If you ever forget what number was assigned to which breakpoint, you can remind yourself with the info breakpoints command:
(gdb) info breakpoints Num Type Disp Enb Address What 1 ...