aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-11-09 01:23:30 +0000
committerJason Molenda <jmolenda@apple.com>1999-11-09 01:23:30 +0000
commit11cf87416416e13eff634a70b4954fe6a3912720 (patch)
treea6dc7a21bb3d45b89c3f95e4b5862ec9d2fab83b /gdb/breakpoint.c
parent98007ce7b0dea06f0c04d833d39b5a9c9773a07a (diff)
downloadgdb-11cf87416416e13eff634a70b4954fe6a3912720.zip
gdb-11cf87416416e13eff634a70b4954fe6a3912720.tar.gz
gdb-11cf87416416e13eff634a70b4954fe6a3912720.tar.bz2
import gdb-1999-11-08 snapshot
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2f75e60..ca7bb08 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -471,6 +471,7 @@ get_number_trailer (pp, trailer)
return retval;
}
+
/* Like get_number_trailer, but don't allow a trailer. */
int
get_number (pp)
@@ -632,8 +633,6 @@ commands_command (arg, from_tty)
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.");
@@ -2070,9 +2069,9 @@ print_it_typical (bs)
/* 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:
@@ -2116,7 +2115,6 @@ print_bp_stop_message (bpstat bs)
}
}
-
/* 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
@@ -6610,12 +6608,14 @@ map_breakpoint_numbers (args, function)
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);
@@ -6629,13 +6629,14 @@ map_breakpoint_numbers (args, function)
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;
}