diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:40:23 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:12 -0700 |
commit | 8d65703517069975d781d7957d90a9de3ce94e5d (patch) | |
tree | 338bab9d0dbba3c4411b4d50808418fe8d423453 /gdb/target-delegates.c | |
parent | 098dba18ee55150df53f3a6846de4dd9c7564088 (diff) | |
download | gdb-8d65703517069975d781d7957d90a9de3ce94e5d.zip gdb-8d65703517069975d781d7957d90a9de3ce94e5d.tar.gz gdb-8d65703517069975d781d7957d90a9de3ce94e5d.tar.bz2 |
convert to_mourn_inferior
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (default_mourn_inferior): New function.
(target_mourn_inferior): Unconditionally delegate.
* target.h (struct target_ops) <to_mourn_inferior>: Use
TARGET_DEFAULT_FUNC.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index ebecbeb..f3000b7 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -510,6 +510,13 @@ tdefault_has_exited (struct target_ops *self, int arg1, int arg2, int *arg3) return 0; } +static void +delegate_mourn_inferior (struct target_ops *self) +{ + self = self->beneath; + self->to_mourn_inferior (self); +} + static char * delegate_extra_thread_info (struct target_ops *self, struct thread_info *arg1) { @@ -1247,6 +1254,8 @@ install_delegators (struct target_ops *ops) ops->to_set_syscall_catchpoint = delegate_set_syscall_catchpoint; if (ops->to_has_exited == NULL) ops->to_has_exited = delegate_has_exited; + if (ops->to_mourn_inferior == NULL) + ops->to_mourn_inferior = delegate_mourn_inferior; if (ops->to_extra_thread_info == NULL) ops->to_extra_thread_info = delegate_extra_thread_info; if (ops->to_thread_name == NULL) @@ -1403,6 +1412,7 @@ install_dummy_methods (struct target_ops *ops) ops->to_remove_exec_catchpoint = tdefault_remove_exec_catchpoint; ops->to_set_syscall_catchpoint = tdefault_set_syscall_catchpoint; ops->to_has_exited = tdefault_has_exited; + ops->to_mourn_inferior = default_mourn_inferior; ops->to_extra_thread_info = tdefault_extra_thread_info; ops->to_thread_name = tdefault_thread_name; ops->to_stop = tdefault_stop; |