diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-01-29 17:52:47 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-01-29 17:52:47 +0000 |
commit | a5606eee5ec10851d09a8e2709354c7e0931a99c (patch) | |
tree | 74396fad6948f39a3d299b61354795949342468e /bfd/cpu-xc16x.c | |
parent | 0b3de036ef7812900af73c59dae4a703fce5f2da (diff) | |
download | gdb-a5606eee5ec10851d09a8e2709354c7e0931a99c.zip gdb-a5606eee5ec10851d09a8e2709354c7e0931a99c.tar.gz gdb-a5606eee5ec10851d09a8e2709354c7e0931a99c.tar.bz2 |
Use multiple locations for hardware watchpoints.
This eliminates the need to traverse value chain, doing
various checks, in three different places.
* breakpoint.h (struct bp_location): New fields
lengths and watchpoint_type.
(struct breakpoint): Remove the val_chain field.
* breakpoint.c (is_hardware_watchpoint): New.
(free_valchain): Remove.
(update_watchpoint): New.
(insert_bp_location): For hardware watchpoint, just
directly insert it.
(insert_breakpoints): Call update_watchpoint_locations
on all watchpoints. If we have failed to insert
any location of a hardware watchpoint, remove all inserted
locations.
(remove_breakpoint): For hardware watchpoints, directly
remove location.
(watchpoints_triggered): Iterate over locations.
(bpstat_stop_status): Use only first location of
a resource watchpoint.
(delete_breakpoint): Don't call free_valchain.
(print_one_breakpoint): Don't print all
locations for watchpoints.
(breakpoint_re_set_one): Use update_watchpoint for
watchpoints.
Diffstat (limited to 'bfd/cpu-xc16x.c')
0 files changed, 0 insertions, 0 deletions