This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: don't repeat `delete' command
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 24 Jun 2002 14:59:43 -0600
- Subject: RFA: don't repeat `delete' command
- Reply-to: tromey at redhat dot com
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;