How do I remove a single breakpoint with GDB?
You can list breakpoints with:
This will list all breakpoints. Then a breakpoint can be deleted by its corresponding number:
(gdb) info b Num Type Disp Enb Address What 3 breakpoint keep y 0x004018c3 in timeCorrect at my3.c:215 4 breakpoint keep y 0x004295b0 in avi_write_packet atlibavformat/avienc.c:513 (gdb) del 3 (gdb) info b Num Type Disp Enb Address What 4 breakpoint keep y 0x004295b0 in avi_write_packet atlibavformat/avienc.c:513
I can add a break point in GDB with:
b <filename>:<line no>
How can I remove an existing breakpoint at a particular location?
clear fileName:lineNum // Removes all breakpoints at the specified line. delete breakpoint number // Delete one breakpoint whose number is 'number'