From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5278 invoked by alias); 24 Jun 2002 20:46:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5208 invoked from network); 24 Jun 2002 20:46:35 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 24 Jun 2002 20:46:35 -0000 Received: from fleche.redhat.com (ta0197.peakpeak.com [204.144.244.197] (may be forged)) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id OAA12932 for ; Mon, 24 Jun 2002 14:46:33 -0600 Received: by fleche.redhat.com (Postfix, from userid 1000) id BFC4C4F80AA; Mon, 24 Jun 2002 14:59:43 -0600 (MDT) To: gdb-patches@sources.redhat.com Subject: RFA: don't repeat `delete' command From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: YOW!! I am having FUN!! Date: Mon, 24 Jun 2002 13:46:00 -0000 Message-ID: <87ptygjsu8.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-06/txt/msg00493.txt.bz2 Right now the `delete' command will repeat if you hit enter again after it completes. Then it proceeds to give an error message, since you've already deleted the breakpoints in question. I've run across this by accident a few times recently. It seems a bit odd to me, and I'd prefer that the `delete' command not repeat. Hence this patch. Ok? Tom Index: ChangeLog from Tom Tromey * breakpoint.c (delete_command): Don't repeat `delete' commands. Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.77 diff -u -r1.77 breakpoint.c --- breakpoint.c 18 Jun 2002 21:58:55 -0000 1.77 +++ breakpoint.c 24 Jun 2002 20:43:14 -0000 @@ -6769,6 +6769,8 @@ { struct breakpoint *b, *temp; + dont_repeat (); + if (arg == 0) { int breaks_to_delete = 0;