This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Don't repeat breakpoint commands
- From: Andreas From <andreas dot from at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Andreas From <andreas dot from at ericsson dot com>
- Date: Fri, 5 Dec 2014 11:55:43 -0500
- Subject: [PATCH] Don't repeat breakpoint commands
- Authentication-results: sourceware.org; auth=none
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;
--
1.9.1