This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Delete all breakpoints with less typing


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]