diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2004-05-13 16:39:11 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2004-05-13 16:39:11 +0000 |
commit | 00d4360e1c3b690029405686bd10559da3e44796 (patch) | |
tree | dc8029eca1159e3bce9f249d670f82f33d3b4d5e /gdb/breakpoint.c | |
parent | 336b9722b8b277b2387d77ce613db63cad27e4db (diff) | |
download | gdb-00d4360e1c3b690029405686bd10559da3e44796.zip gdb-00d4360e1c3b690029405686bd10559da3e44796.tar.gz gdb-00d4360e1c3b690029405686bd10559da3e44796.tar.bz2 |
* breakpoint.c (bpstat_stop_status): Add new argument
STOPPED_BY_WATCHPOINT. Use it instead of testing
target_stopped_data_address agaist 0 to check whether
or not we stopped due to a hardware watchpoint.
* breakpoint.h (bpstat_stop_status): Adapt prototype.
* infrun.c (handle_inferior_event): Call bpstat_stop_status
with new argument.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 96cf0f9..8d0b3c8 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2559,7 +2559,8 @@ which its expression is valid.\n"); } /* Get a bpstat associated with having just stopped at address - BP_ADDR. */ + BP_ADDR in thread PTID. STOPPED_BY_WATCHPOINT is true if the + target thinks we stopped due to a hardware watchpoint. */ /* Determine whether we stopped at a breakpoint, etc, or whether we don't understand this stop. Result is a chain of bpstat's such that: @@ -2576,7 +2577,7 @@ which its expression is valid.\n"); commands, FIXME??? fields. */ bpstat -bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid) +bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid, int stopped_by_watchpoint) { struct breakpoint *b, *temp; /* True if we've hit a breakpoint (as opposed to a watchpoint). */ @@ -2600,7 +2601,7 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid) && !((b->type == bp_hardware_watchpoint || b->type == bp_read_watchpoint || b->type == bp_access_watchpoint) - && target_stopped_data_address () != 0) + && stopped_by_watchpoint) && b->type != bp_hardware_breakpoint && b->type != bp_catch_fork && b->type != bp_catch_vfork |