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

Re: breakpoints/1689: bogus XFAILed "No breakpoint number -1" message


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,


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