From patchwork Fri Dec 5 16:55:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas From X-Patchwork-Id: 4084 Received: (qmail 13212 invoked by alias); 5 Dec 2014 16:56:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 13199 invoked by uid 89); 5 Dec 2014 16:56:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 05 Dec 2014 16:56:01 +0000 Received: from EUSAAHC006.ericsson.se (Unknown_Domain [147.117.188.90]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id D3.75.03307.D7391845; Fri, 5 Dec 2014 12:14:05 +0100 (CET) Received: from efroand-HP-EliteBook-Folio-9470m.ki.sw.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.90) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 5 Dec 2014 11:55:58 -0500 From: Andreas From To: CC: Andreas From Subject: [PATCH] Don't repeat breakpoint commands Date: Fri, 5 Dec 2014 11:55:43 -0500 Message-ID: <1417798543-24712-1-git-send-email-andreas.from@ericsson.com> MIME-Version: 1.0 X-IsSubscribed: yes There's no real use case for repeatedly adding the same breakpoint. gdb/ChangeLog: * breakpoint.c (break_command_1): Add dont_repeat call. --- gdb/breakpoint.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 574d06c..f0eede0 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -10177,6 +10177,8 @@ break_command_1 (char *arg, int flag, int from_tty) struct breakpoint_ops *ops; const char *arg_cp = arg; + dont_repeat (); + /* Matching breakpoints on probes. */ if (arg && probe_linespec_to_ops (&arg_cp) != NULL) ops = &bkpt_probe_breakpoint_ops;