This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Delete all breakpoints with less typing
- From: Tom Tromey <tromey at redhat dot com>
- To: Chris Stankevitz <cstankevitz at toyon dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 12 Feb 2008 17:38:06 -0700
- Subject: Re: Delete all breakpoints with less typing
- References: <47B1F3B7.8040901@toyon.com>
- Reply-to: tromey at redhat dot com
>>>>> "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