This is the mail archive of the gdb-patches@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]

[PATCH] Don't repeat breakpoint commands


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


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