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: dont_repeat() at top level while defining


Hi all!

One of our users just got caught out by the fact that the repeat-on-enter functionality works while using "define", but only at the top level. Inside a sub-block, it is suppressed with dont_repeat().

It seemed more sensible to us to suppress it at the top level too, as per this patch. What do you think?

Many thanks,


Chris -- Chris Smith, STS Software Engineer STMicroelectronics (R&D) Ltd. Phone: +44 1454 462358 Internal: 065 2358
2007-07-31  Chris Smith  <chris.smith@st.com>

	* cli-script.c (read_command_lines): Call dont_repeat() for each line.

Index: gdb-6.6.50.20070731/gdb/cli/cli-script.c
===================================================================
--- gdb-6.6.50.20070731.orig/gdb/cli/cli-script.c	2007-07-03 02:23:01.000000000 +0100
+++ gdb-6.6.50.20070731/gdb/cli/cli-script.c	2007-07-31 17:20:50.000000000 +0100
@@ -1067,6 +1067,7 @@
 
   while (1)
     {
+      dont_repeat();
       val = read_next_line (&next);
 
       /* Ignore blank lines or comments.  */

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