aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2010-03-08 13:34:38 +0000
committerHui Zhu <teawater@gmail.com>2010-03-08 13:34:38 +0000
commit7155de5a7e1a2e53821c57eed4ce9e9883f40df6 (patch)
tree3afae247ca15b0a56711d6d6e95a6d4994ea834f /gdb/target.c
parent580879fcfcc81684d0b105afe8f27975659fa99e (diff)
downloadgdb-7155de5a7e1a2e53821c57eed4ce9e9883f40df6.zip
gdb-7155de5a7e1a2e53821c57eed4ce9e9883f40df6.tar.gz
gdb-7155de5a7e1a2e53821c57eed4ce9e9883f40df6.tar.bz2
2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
Hui Zhu <teawater@gmail.com> * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and tmp_to_stopped_data_address. (record_open): Reset tmp_to_stopped_by_watchpoint and tmp_to_stopped_data_address. * target.c (init_dummy_target): Add to_stopped_by_watchpoint and to_stopped_data_address.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 1f90171..5f7a2e7 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2838,6 +2838,9 @@ init_dummy_target (void)
dummy_target.to_has_stack = (int (*) (struct target_ops *)) return_zero;
dummy_target.to_has_registers = (int (*) (struct target_ops *)) return_zero;
dummy_target.to_has_execution = (int (*) (struct target_ops *)) return_zero;
+ dummy_target.to_stopped_by_watchpoint = return_zero;
+ dummy_target.to_stopped_data_address =
+ (int (*) (struct target_ops *, CORE_ADDR *)) return_zero;
dummy_target.to_magic = OPS_MAGIC;
}