public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* How to delete all breakpoints?
@ 2015-03-31  9:56 Aleksey Midenkov
  2015-03-31 10:01 ` Andreas Schwab
  2015-03-31 10:07 ` Ofir Cohen
  0 siblings, 2 replies; 3+ messages in thread
From: Aleksey Midenkov @ 2015-03-31  9:56 UTC (permalink / raw)
  To: gdb

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to delete all breakpoints?
  2015-03-31  9:56 How to delete all breakpoints? Aleksey Midenkov
@ 2015-03-31 10:01 ` Andreas Schwab
  2015-03-31 10:07 ` Ofir Cohen
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2015-03-31 10:01 UTC (permalink / raw)
  To: Aleksey Midenkov; +Cc: gdb

Aleksey Midenkov <midenok@gmail.com> writes:

> How to delete all breakpoints when exact numbers list is unknown?

(gdb) help delete breakpoints 
Delete some breakpoints or auto-display expressions.
Arguments are breakpoint numbers with spaces in between.
To delete all breakpoints, give no argument.
This command may be abbreviated "delete".

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to delete all breakpoints?
  2015-03-31  9:56 How to delete all breakpoints? Aleksey Midenkov
  2015-03-31 10:01 ` Andreas Schwab
@ 2015-03-31 10:07 ` Ofir Cohen
  1 sibling, 0 replies; 3+ messages in thread
From: Ofir Cohen @ 2015-03-31 10:07 UTC (permalink / raw)
  To: Aleksey Midenkov; +Cc: gdb

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-31 10:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31  9:56 How to delete all breakpoints? Aleksey Midenkov
2015-03-31 10:01 ` Andreas Schwab
2015-03-31 10:07 ` Ofir Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).