Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Delete all breakpoints with less typing
@ 2008-02-12 19:30 Chris Stankevitz
  2008-02-12 19:35 ` Daniel Jacobowitz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Stankevitz @ 2008-02-12 19:30 UTC (permalink / raw)
  To: gdb

Hello,

This is how I delete all breakpoints:

(gdb) del b
Delete all breakpoints? (y or n) y
(gdb)

6 characters for the command plus two more to confirm.  I'm used to MSVC 
which does it with one stroke (SHIFT-F9).  Is there a way to remove 
breakpoints in gdb with less typing and no confirmation?

Thank you!

Chris


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

* Re: Delete all breakpoints with less typing
  2008-02-12 19:30 Delete all breakpoints with less typing Chris Stankevitz
@ 2008-02-12 19:35 ` Daniel Jacobowitz
  2008-02-12 19:41   ` Daniel Jacobowitz
  2008-02-12 19:37 ` Michael Snyder
  2008-02-13  1:22 ` Tom Tromey
  2 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2008-02-12 19:35 UTC (permalink / raw)
  To: Chris Stankevitz; +Cc: gdb

On Tue, Feb 12, 2008 at 11:29:59AM -0800, Chris Stankevitz wrote:
> Hello,
>
> This is how I delete all breakpoints:
>
> (gdb) del b
> Delete all breakpoints? (y or n) y
> (gdb)
>
> 6 characters for the command plus two more to confirm.  I'm used to MSVC  
> which does it with one stroke (SHIFT-F9).  Is there a way to remove  
> breakpoints in gdb with less typing and no confirmation?

It's just "d" if you really want to abbreviate.

You can disable confirmation by "set query off".

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: Delete all breakpoints with less typing
  2008-02-12 19:30 Delete all breakpoints with less typing Chris Stankevitz
  2008-02-12 19:35 ` Daniel Jacobowitz
@ 2008-02-12 19:37 ` Michael Snyder
  2008-02-12 21:37   ` Chris Stankevitz
  2008-02-13  1:22 ` Tom Tromey
  2 siblings, 1 reply; 6+ messages in thread
From: Michael Snyder @ 2008-02-12 19:37 UTC (permalink / raw)
  To: Chris Stankevitz; +Cc: gdb

On Tue, 2008-02-12 at 11:29 -0800, Chris Stankevitz wrote:
> Hello,
> 
> This is how I delete all breakpoints:
> 
> (gdb) del b
> Delete all breakpoints? (y or n) y
> (gdb)
> 
> 6 characters for the command plus two more to confirm.  I'm used to MSVC 
> which does it with one stroke (SHIFT-F9).  Is there a way to remove 
> breakpoints in gdb with less typing and no confirmation?

Absolutely!  

The " b" is not necessary, since "delete" defaults to 
"delete breakpoint".  Now you're down to four keystrokes plus two.

And "set confirm off" will assure gdb that you know
what you want to do.  Down to four keystrokes total.

We would not want you getting RSS because of gdb!  
;-)




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

* Re: Delete all breakpoints with less typing
  2008-02-12 19:35 ` Daniel Jacobowitz
@ 2008-02-12 19:41   ` Daniel Jacobowitz
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2008-02-12 19:41 UTC (permalink / raw)
  To: gdb; +Cc: Chris Stankevitz

On Tue, Feb 12, 2008 at 02:34:41PM -0500, Daniel Jacobowitz wrote:
> You can disable confirmation by "set query off".

Er, Michael's right.  It's "set confirm".

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: Delete all breakpoints with less typing
  2008-02-12 19:37 ` Michael Snyder
@ 2008-02-12 21:37   ` Chris Stankevitz
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Stankevitz @ 2008-02-12 21:37 UTC (permalink / raw)
  To: gdb

Michael Snyder wrote:
> The " b" is not necessary, since "delete" defaults to 
> "delete breakpoint".  Now you're down to four keystrokes plus two.
> 
> And "set confirm off" will assure gdb that you know
> what you want to do.  Down to four keystrokes total.

Thanks everyone, this is working great!

Chris


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

* Re: Delete all breakpoints with less typing
  2008-02-12 19:30 Delete all breakpoints with less typing Chris Stankevitz
  2008-02-12 19:35 ` Daniel Jacobowitz
  2008-02-12 19:37 ` Michael Snyder
@ 2008-02-13  1:22 ` Tom Tromey
  2 siblings, 0 replies; 6+ messages in thread
From: Tom Tromey @ 2008-02-13  1:22 UTC (permalink / raw)
  To: Chris Stankevitz; +Cc: gdb

>>>>> "Chris" == Chris Stankevitz <cstankevitz@toyon.com> writes:

Chris> 6 characters for the command plus two more to confirm.  I'm used to
Chris> MSVC which does it with one stroke (SHIFT-F9).  Is there a way to
Chris> remove breakpoints in gdb with less typing and no confirmation?

If you really want to get crazy, bind F9 to a readline keyboard macro
that deletes the current line, enters "delete b RET y RET" (or if that
doesn't work, "delete 1-10000 RET"), and then yanks the previously
deleted text.  See (info "(readline)Readline Init File Syntax") for
more information.

You could of course do this in Emacs' gud mode as well :-)

Tom


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

end of thread, other threads:[~2008-02-13  1:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-12 19:30 Delete all breakpoints with less typing Chris Stankevitz
2008-02-12 19:35 ` Daniel Jacobowitz
2008-02-12 19:41   ` Daniel Jacobowitz
2008-02-12 19:37 ` Michael Snyder
2008-02-12 21:37   ` Chris Stankevitz
2008-02-13  1:22 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox