aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-11-17 09:41:33 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-11-17 09:41:33 +0000
commit7f82dfc7f0654b735a1dbe5d9d2d2948f175ba64 (patch)
tree4424d7da6c4432ab27c4c598e6fb142c73f1b76d /gdb/target.h
parent1649019427594c0e78e7082a1885c6ac8a480cb5 (diff)
downloadgdb-7f82dfc7f0654b735a1dbe5d9d2d2948f175ba64.zip
gdb-7f82dfc7f0654b735a1dbe5d9d2d2948f175ba64.tar.gz
gdb-7f82dfc7f0654b735a1dbe5d9d2d2948f175ba64.tar.bz2
gdb/
Fix wrong debug output with `set debug infrun 1'. * gdb/infrun.c (handle_inferior_event <debug_infrun>): New variable old_chain. Temporarily switch INFERIOR_PTID. * target.h (target_stopped_by_watchpoint): Extend the comment. (target_stopped_data_address): New comment.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/target.h b/gdb/target.h
index e4421e9..c957b2a 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1144,7 +1144,7 @@ extern char *normal_pid_to_str (ptid_t ptid);
/* Hardware watchpoint interfaces. */
/* Returns non-zero if we were stopped by a hardware watchpoint (memory read or
- write). */
+ write). Only the INFERIOR_PTID task is being queried. */
#define target_stopped_by_watchpoint \
(*current_target.to_stopped_by_watchpoint)
@@ -1192,8 +1192,11 @@ extern char *normal_pid_to_str (ptid_t ptid);
#define target_remove_hw_breakpoint(gdbarch, bp_tgt) \
(*current_target.to_remove_hw_breakpoint) (gdbarch, bp_tgt)
-#define target_stopped_data_address(target, x) \
- (*target.to_stopped_data_address) (target, x)
+/* Return non-zero if target knows the data address which triggered this
+ target_stopped_by_watchpoint, in such case place it to *ADDR_P. Only the
+ INFERIOR_PTID task is being queried. */
+#define target_stopped_data_address(target, addr_p) \
+ (*target.to_stopped_data_address) (target, addr_p)
#define target_watchpoint_addr_within_range(target, addr, start, length) \
(*target.to_watchpoint_addr_within_range) (target, addr, start, length)