From d71b51a27494b7b9a4355046d982523b400db61f Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Mon, 8 Mar 2010 13:34:37 +0000 Subject: 2010-03-08 Jan Kratochvil Hui Zhu * 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. --- gdb/target.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/target.c') 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; } -- cgit v1.2.1