diff options
author | Tom Tromey <tom@tromey.com> | 2018-11-14 09:29:51 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-11-18 09:30:55 -0700 |
commit | c2a6c5da37c0135acdb859ca819870980db69b77 (patch) | |
tree | 962fd03e2669ca5d3ec6a9b27dfec345d43fddee /gdb/target-delegates.c | |
parent | ad6d89178df984c70c39f31eca149d8e5806c848 (diff) | |
download | gdb-c2a6c5da37c0135acdb859ca819870980db69b77.zip gdb-c2a6c5da37c0135acdb859ca819870980db69b77.tar.gz gdb-c2a6c5da37c0135acdb859ca819870980db69b77.tar.bz2 |
Fix ia64-linux-nat.c
PR build/23814 points out that ia64-linux-nat.c will not compile any
more. This patch fixes the problem. Thanks to Andreas Schwab for
trying the patch.
gdb/ChangeLog
2018-11-18 Tom Tromey <tom@tromey.com>
PR build/23814:
* target-delegates.c: Rebuild.
* ia64-linux-nat.c (class ia64_linux_nat_target)
<have_steppable_watchpoint>: Use override. Return true, not 1.
(ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
"self" argument.
(ia64_linux_nat_target::low_new_thread): Rename.
(class ia64_linux_nat_target) <read_description>: Don't declare.
* target.h (struct target_ops) <have_steppable_watchpoint>: Return
bool.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 03136df..eeb5057 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -35,7 +35,7 @@ struct dummy_target : public target_ops int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override; int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override; bool stopped_by_watchpoint () override; - int have_steppable_watchpoint () override; + bool have_steppable_watchpoint () override; bool stopped_data_address (CORE_ADDR *arg0) override; bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override; int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override; @@ -202,7 +202,7 @@ struct debug_target : public target_ops int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override; int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override; bool stopped_by_watchpoint () override; - int have_steppable_watchpoint () override; + bool have_steppable_watchpoint () override; bool stopped_data_address (CORE_ADDR *arg0) override; bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override; int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override; @@ -989,27 +989,27 @@ debug_target::stopped_by_watchpoint () return result; } -int +bool target_ops::have_steppable_watchpoint () { return this->beneath ()->have_steppable_watchpoint (); } -int +bool dummy_target::have_steppable_watchpoint () { return false; } -int +bool debug_target::have_steppable_watchpoint () { - int result; + bool result; fprintf_unfiltered (gdb_stdlog, "-> %s->have_steppable_watchpoint (...)\n", this->beneath ()->shortname ()); result = this->beneath ()->have_steppable_watchpoint (); fprintf_unfiltered (gdb_stdlog, "<- %s->have_steppable_watchpoint (", this->beneath ()->shortname ()); fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_int (result); + target_debug_print_bool (result); fputs_unfiltered ("\n", gdb_stdlog); return result; } |