diff options
author | Pedro Alves <palves@redhat.com> | 2016-04-12 16:49:32 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-04-12 17:02:06 +0100 |
commit | cfd0fbddb025d36228d02fe23e06039acc6104e4 (patch) | |
tree | 09addebcb6b1c9b5051bad642182a95035e6404d /gdb/target-delegates.c | |
parent | 585a46a2d01d25181926329f258f1d1374f93e99 (diff) | |
download | fsf-binutils-gdb-cfd0fbddb025d36228d02fe23e06039acc6104e4.zip fsf-binutils-gdb-cfd0fbddb025d36228d02fe23e06039acc6104e4.tar.gz fsf-binutils-gdb-cfd0fbddb025d36228d02fe23e06039acc6104e4.tar.bz2 |
Eliminate target_check_pending_interrupt
This is no longer called anywhere.
gdb/ChangeLog:
2016-04-12 Pedro Alves <palves@redhat.com>
* target.c (target_check_pending_interrupt): Delete.
* target.h (struct target_ops) <to_check_pending_interrupt>:
Remove method.
(target_check_pending_interrupt): Remove declaration.
* target-delegates.c: Regenerate.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 640803a..03aa2cc 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -1625,28 +1625,6 @@ debug_pass_ctrlc (struct target_ops *self) } static void -delegate_check_pending_interrupt (struct target_ops *self) -{ - self = self->beneath; - self->to_check_pending_interrupt (self); -} - -static void -tdefault_check_pending_interrupt (struct target_ops *self) -{ -} - -static void -debug_check_pending_interrupt (struct target_ops *self) -{ - fprintf_unfiltered (gdb_stdlog, "-> %s->to_check_pending_interrupt (...)\n", debug_target.to_shortname); - debug_target.to_check_pending_interrupt (&debug_target); - fprintf_unfiltered (gdb_stdlog, "<- %s->to_check_pending_interrupt (", debug_target.to_shortname); - target_debug_print_struct_target_ops_p (&debug_target); - fputs_unfiltered (")\n", gdb_stdlog); -} - -static void delegate_rcmd (struct target_ops *self, const char *arg1, struct ui_file *arg2) { self = self->beneath; @@ -4213,8 +4191,6 @@ install_delegators (struct target_ops *ops) ops->to_interrupt = delegate_interrupt; if (ops->to_pass_ctrlc == NULL) ops->to_pass_ctrlc = delegate_pass_ctrlc; - if (ops->to_check_pending_interrupt == NULL) - ops->to_check_pending_interrupt = delegate_check_pending_interrupt; if (ops->to_rcmd == NULL) ops->to_rcmd = delegate_rcmd; if (ops->to_pid_to_exec_file == NULL) @@ -4462,7 +4438,6 @@ install_dummy_methods (struct target_ops *ops) ops->to_stop = tdefault_stop; ops->to_interrupt = tdefault_interrupt; ops->to_pass_ctrlc = default_target_pass_ctrlc; - ops->to_check_pending_interrupt = tdefault_check_pending_interrupt; ops->to_rcmd = default_rcmd; ops->to_pid_to_exec_file = tdefault_pid_to_exec_file; ops->to_log_command = tdefault_log_command; @@ -4619,7 +4594,6 @@ init_debug_target (struct target_ops *ops) ops->to_stop = debug_stop; ops->to_interrupt = debug_interrupt; ops->to_pass_ctrlc = debug_pass_ctrlc; - ops->to_check_pending_interrupt = debug_check_pending_interrupt; ops->to_rcmd = debug_rcmd; ops->to_pid_to_exec_file = debug_pid_to_exec_file; ops->to_log_command = debug_log_command; |