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

RFA: don't repeat `delete' command


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  <tromey@redhat.com>

	* 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;


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