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 | 19d1daaefed7bf5584f210132e4c07c35a961c45 (patch) | |
tree | 4570b18ee3efa5d96e91cba148e17cfe10432f20 /gdb/breakpoint.c | |
parent | a2fe627a93947c8ca362ae797a2bc18d5fd9edff (diff) | |
download | gdb-19d1daaefed7bf5584f210132e4c07c35a961c45.tar.gz |
* 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 96cf0f9b36e..8d0b3c8116a 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 |