From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1658 invoked by alias); 13 Feb 2008 01:22:30 -0000 Received: (qmail 1646 invoked by uid 22791); 13 Feb 2008 01:22:29 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 13 Feb 2008 01:22:12 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m1D1M9ZJ029324; Tue, 12 Feb 2008 20:22:10 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1D1M9w1023633; Tue, 12 Feb 2008 20:22:09 -0500 Received: from opsy.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1D1M5GG024429; Tue, 12 Feb 2008 20:22:06 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 5C1E3378663; Tue, 12 Feb 2008 17:38:07 -0700 (MST) To: Chris Stankevitz Cc: gdb@sourceware.org Subject: Re: Delete all breakpoints with less typing References: <47B1F3B7.8040901@toyon.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Wed, 13 Feb 2008 01:22:00 -0000 In-Reply-To: <47B1F3B7.8040901@toyon.com> (Chris Stankevitz's message of "Tue\, 12 Feb 2008 11\:29\:59 -0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00084.txt.bz2 >>>>> "Chris" == Chris Stankevitz 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