aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2004-05-13 16:39:11 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2004-05-13 16:39:11 +0000
commit00d4360e1c3b690029405686bd10559da3e44796 (patch)
treedc8029eca1159e3bce9f249d670f82f33d3b4d5e /gdb/breakpoint.h
parent336b9722b8b277b2387d77ce613db63cad27e4db (diff)
downloadfsf-binutils-gdb-00d4360e1c3b690029405686bd10559da3e44796.zip
fsf-binutils-gdb-00d4360e1c3b690029405686bd10559da3e44796.tar.gz
fsf-binutils-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.h')
-rw-r--r--gdb/breakpoint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 93b6850..67a67e3 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -414,7 +414,8 @@ extern void bpstat_clear (bpstat *);
is part of the bpstat is copied as well. */
extern bpstat bpstat_copy (bpstat);
-extern bpstat bpstat_stop_status (CORE_ADDR pc, ptid_t ptid);
+extern bpstat bpstat_stop_status (CORE_ADDR pc, ptid_t ptid,
+ int stopped_by_watchpoint);
/* This bpstat_what stuff tells wait_for_inferior what to do with a
breakpoint (a challenging task). */