This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to delete all breakpoints?
- From: Ofir Cohen <ofircohenn at gmail dot com>
- To: Aleksey Midenkov <midenok at gmail dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 31 Mar 2015 12:59:35 +0300
- Subject: Re: How to delete all breakpoints?
- Authentication-results: sourceware.org; auth=none
- References: <CAF8BazAOnWUqyrt-U-pbda03xkt4nM45yPo-xoXsQdnSOVhYgA at mail dot gmail dot com>
You can delete all breakpoints using "delete" with no arguments.
>From gdb's manual[1]:
"Delete the breakpoints, watchpoints, or catchpoints of the breakpoint
ranges specified as arguments. If no argument is specified, delete all
breakpoints"
- Ofir
[1] https://sourceware.org/gdb/onlinedocs/gdb/Delete-Breaks.html#Delete-Breaks
On 31 March 2015 at 12:56, Aleksey Midenkov <midenok@gmail.com> wrote:
> How to delete all breakpoints when exact numbers list is unknown?
> Giving range argument results in many error messages:
>
> (gdb) delete breakpoints 0-100
> No breakpoint number 0.
> No breakpoint number 5.
> No breakpoint number 6.
> ...
> No breakpoint number 98.
> No breakpoint number 99.
> No breakpoint number 100.