* breakpoint.c (print_it_normal): Allow GDB to notify the user

about more than one watchpoint being triggered.
This commit is contained in:
Jeff Law 1994-03-30 17:17:01 +00:00
parent c2c818bc35
commit bd2f0c8543
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Wed Mar 30 09:15:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* breakpoint.c (print_it_normal): Allow GDB to notify the user
about more than one watchpoint being triggered.
Wed Mar 30 08:24:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com) Wed Mar 30 08:24:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h. * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.

View File

@ -794,7 +794,8 @@ print_it_normal (bs)
printf_filtered ("\n"); printf_filtered ("\n");
value_free (bs->old_val); value_free (bs->old_val);
bs->old_val = NULL; 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. */ /* We can't deal with it. Maybe another member of the bpstat chain can. */
return -1; return -1;
@ -3172,8 +3173,7 @@ May be abbreviated to simply \"enable\".\n",
add_cmd ("once", no_class, enable_once_command, add_cmd ("once", no_class, enable_once_command,
"Enable breakpoints for one hit. Give breakpoint numbers.\n\ "Enable breakpoints for one hit. Give breakpoint numbers.\n\
If a breakpoint is hit while enabled in this fashion, it becomes disabled.\n\ If a breakpoint is hit while enabled in this fashion, it becomes disabled.",
See the \"tbreak\" command which sets a breakpoint and enables it once.",
&enablebreaklist); &enablebreaklist);
add_cmd ("delete", no_class, enable_delete_command, 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, add_cmd ("once", no_class, enable_once_command,
"Enable breakpoints for one hit. Give breakpoint numbers.\n\ "Enable breakpoints for one hit. Give breakpoint numbers.\n\
If a breakpoint is hit while enabled in this fashion, it becomes disabled.\n\ If a breakpoint is hit while enabled in this fashion, it becomes disabled.",
See the \"tbreak\" command which sets a breakpoint and enables it once.",
&enablelist); &enablelist);
add_prefix_cmd ("disable", class_breakpoint, disable_command, add_prefix_cmd ("disable", class_breakpoint, disable_command,