diff options
author | Pedro Alves <palves@redhat.com> | 2018-08-31 18:47:12 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-08-31 18:47:12 +0100 |
commit | 7eb65fafed7b50511f52664e98e22b20eb697197 (patch) | |
tree | 0faa8b7571f1eae5fda52fcbe174dbc5e92e38f4 /gdb/target-delegates.c | |
parent | gas/elf/section14.d: Change skip to xfail (diff) | |
download | binutils-gdb-7eb65fafed7b50511f52664e98e22b20eb697197.tar.gz binutils-gdb-7eb65fafed7b50511f52664e98e22b20eb697197.tar.bz2 binutils-gdb-7eb65fafed7b50511f52664e98e22b20eb697197.zip |
Eliminate target_have_continuable_watchpoint
target_have_continuable_watchpoint isn't used anywhere so remove it.
The property isn't necessary because checking for "continuable" is the
same as checking for "!steppable && !non-steppable".
gdb/ChangeLog:
2018-08-31 Pedro Alves <palves@redhat.com>
* nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
Delete.
* s390-linux-nat.c
(s390_linux_nat_target::have_continuable_watchpoint): Delete.
* target.h (target_ops::have_continuable_watchpoint): Delete.
(target_have_continuable_watchpoint): Delete.
* x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
* target-delegates.c: Regenerate.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 319a9bb46b4..03136dfacf2 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -36,7 +36,6 @@ struct dummy_target : public target_ops 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_continuable_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; @@ -204,7 +203,6 @@ struct debug_target : public target_ops 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_continuable_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; @@ -1017,31 +1015,6 @@ debug_target::have_steppable_watchpoint () } bool -target_ops::have_continuable_watchpoint () -{ - return this->beneath ()->have_continuable_watchpoint (); -} - -bool -dummy_target::have_continuable_watchpoint () -{ - return false; -} - -bool -debug_target::have_continuable_watchpoint () -{ - bool result; - fprintf_unfiltered (gdb_stdlog, "-> %s->have_continuable_watchpoint (...)\n", this->beneath ()->shortname ()); - result = this->beneath ()->have_continuable_watchpoint (); - fprintf_unfiltered (gdb_stdlog, "<- %s->have_continuable_watchpoint (", this->beneath ()->shortname ()); - fputs_unfiltered (") = ", gdb_stdlog); - target_debug_print_bool (result); - fputs_unfiltered ("\n", gdb_stdlog); - return result; -} - -bool target_ops::stopped_data_address (CORE_ADDR *arg0) { return this->beneath ()->stopped_data_address (arg0); |