aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-03-30 17:17:01 +0000
committerJeff Law <law@redhat.com>1994-03-30 17:17:01 +0000
commitbd2f0c8543f51ccd71f8fac428c539dc3d36ad7a (patch)
treeaabe4370b31da18485f1fb6ec7aea9c1a2136e40 /gdb/breakpoint.c
parentc2c818bc356f98b24df8e93153486ce76ddd9607 (diff)
downloadgdb-bd2f0c8543f51ccd71f8fac428c539dc3d36ad7a.zip
gdb-bd2f0c8543f51ccd71f8fac428c539dc3d36ad7a.tar.gz
gdb-bd2f0c8543f51ccd71f8fac428c539dc3d36ad7a.tar.bz2
* breakpoint.c (print_it_normal): Allow GDB to notify the user
about more than one watchpoint being triggered.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 027ef76..f8adee1 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -794,7 +794,8 @@ print_it_normal (bs)
printf_filtered ("\n");
value_free (bs->old_val);
bs->old_val = NULL;
- return 0;
+ /* More than one watchpoint may have been triggered. */
+ return -1;
}
/* We can't deal with it. Maybe another member of the bpstat chain can. */
return -1;
@@ -3172,8 +3173,7 @@ May be abbreviated to simply \"enable\".\n",
add_cmd ("once", no_class, enable_once_command,
"Enable breakpoints for one hit. Give breakpoint numbers.\n\
-If a breakpoint is hit while enabled in this fashion, it becomes disabled.\n\
-See the \"tbreak\" command which sets a breakpoint and enables it once.",
+If a breakpoint is hit while enabled in this fashion, it becomes disabled.",
&enablebreaklist);
add_cmd ("delete", no_class, enable_delete_command,
@@ -3188,8 +3188,7 @@ If a breakpoint is hit while enabled in this fashion, it is deleted.",
add_cmd ("once", no_class, enable_once_command,
"Enable breakpoints for one hit. Give breakpoint numbers.\n\
-If a breakpoint is hit while enabled in this fashion, it becomes disabled.\n\
-See the \"tbreak\" command which sets a breakpoint and enables it once.",
+If a breakpoint is hit while enabled in this fashion, it becomes disabled.",
&enablelist);
add_prefix_cmd ("disable", class_breakpoint, disable_command,