diff options
author | Hui Zhu <teawater@gmail.com> | 2010-03-08 13:34:37 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2010-03-08 13:34:37 +0000 |
commit | d71b51a27494b7b9a4355046d982523b400db61f (patch) | |
tree | e4b8cf9d92348c6748d3378b58b87c329b111b47 /gdb/target.c | |
parent | 6f4bded935c2e259b0aed54d6a5ede83da6433b9 (diff) | |
download | gdb-d71b51a27494b7b9a4355046d982523b400db61f.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c index 1f90171d57a..5f7a2e729af 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; } |