This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: breakpoints/1689: bogus XFAILed "No breakpoint number -1" message
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 23 Jun 2004 17:58:00 -0000
- Subject: Re: breakpoints/1689: bogus XFAILed "No breakpoint number -1" message
- Reply-to: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
The following reply was made to PR breakpoints/1689; it has been noted by GNATS.
From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
To: ac131313@redhat.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1689: bogus XFAILed "No breakpoint number -1" message
Date: Wed, 23 Jun 2004 13:51:57 -0400 (EDT)
I have seen this too.
I even started working on a fix a while ago, but never finished it.
Perhaps this might help?
Michael C
===
diff -u -r -N ORIG-HEAD/src/gdb/infcmd.c HEAD/src/gdb/infcmd.c
--- ORIG-HEAD/src/gdb/infcmd.c 2002-11-24 14:48:12.000000000 -0500
+++ HEAD/src/gdb/infcmd.c 2002-12-02 02:44:26.000000000 -0500
@@ -505,12 +505,13 @@
{
bpstat bs = stop_bpstat;
int num = bpstat_num (&bs);
- if (num == 0 && from_tty)
+ if (num <= 0 && from_tty)
{
+ /* num can be either -1 or 0 if we are not at a breakpoint. */
printf_filtered
("Not stopped at any breakpoint; argument ignored.\n");
}
- while (num != 0)
+ while (num > 0)
{
set_ignore_count (num,
parse_and_eval_long (proc_count_exp) - 1,