Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Ofir Cohen <ofircohenn@gmail.com>
To: Aleksey Midenkov <midenok@gmail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: How to delete all breakpoints?
Date: Tue, 31 Mar 2015 10:07:00 -0000	[thread overview]
Message-ID: <CAHOBVAcMdkZS=qWU6LJM0MCZmxwXC+uEqmj2vT21Naz_QYvsug@mail.gmail.com> (raw)
In-Reply-To: <CAF8BazAOnWUqyrt-U-pbda03xkt4nM45yPo-xoXsQdnSOVhYgA@mail.gmail.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.


      parent reply	other threads:[~2015-03-31 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-31  9:56 Aleksey Midenkov
2015-03-31 10:01 ` Andreas Schwab
2015-03-31 10:07 ` Ofir Cohen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHOBVAcMdkZS=qWU6LJM0MCZmxwXC+uEqmj2vT21Naz_QYvsug@mail.gmail.com' \
    --to=ofircohenn@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=midenok@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox