return retval;
}
+
/* Like get_number_trailer, but don't allow a trailer. */
int
get_number (pp)
p = arg;
bnum = get_number (&p);
- if (bnum == 0)
- error ("bad breakpoint number: '%s'", arg);
if (p && *p)
error ("Unexpected extra arguments following breakpoint number.");
/* Fall through, we don't deal with these types of breakpoints
here. */
+ case bp_finish:
case bp_none:
case bp_until:
- case bp_finish:
case bp_longjmp:
case bp_longjmp_resume:
case bp_step_resume:
}
}
-
/* Print a message indicating what happened. This is called from
normal_stop(). The input to this routine is the head of the bpstat
list - a list of the eventpoints that caused this stop. This
char *p1;
register int num;
register struct breakpoint *b, *tmp;
+ int match;
if (p == 0)
error_no_arg ("one or more breakpoint numbers");
while (*p)
{
+ match = 0;
p1 = p;
num = get_number_or_range (&p1);
if (b->number == num)
{
struct breakpoint *related_breakpoint = b->related_breakpoint;
+ match = 1;
function (b);
if (related_breakpoint)
function (related_breakpoint);
- goto win;
+ break;
}
- printf_unfiltered ("No breakpoint number %d.\n", num);
- win:
+ if (match == 0)
+ printf_unfiltered ("No breakpoint number %d.\n", num);
}
p = p1;
}