diff options
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index f92b096..3a322c1 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -591,6 +591,19 @@ delegate_execution_direction (struct target_ops *self) return self->to_execution_direction (self); } +static int +delegate_supports_multi_process (struct target_ops *self) +{ + self = self->beneath; + return self->to_supports_multi_process (self); +} + +static int +tdefault_supports_multi_process (struct target_ops *self) +{ + return 0; +} + static struct gdbarch * delegate_thread_architecture (struct target_ops *self, ptid_t arg1) { @@ -718,6 +731,8 @@ install_delegators (struct target_ops *ops) ops->to_can_execute_reverse = delegate_can_execute_reverse; if (ops->to_execution_direction == NULL) ops->to_execution_direction = delegate_execution_direction; + if (ops->to_supports_multi_process == NULL) + ops->to_supports_multi_process = delegate_supports_multi_process; if (ops->to_thread_architecture == NULL) ops->to_thread_architecture = delegate_thread_architecture; if (ops->to_supports_btrace == NULL) @@ -779,6 +794,7 @@ install_dummy_methods (struct target_ops *ops) ops->to_get_ada_task_ptid = default_get_ada_task_ptid; ops->to_can_execute_reverse = tdefault_can_execute_reverse; ops->to_execution_direction = default_execution_direction; + ops->to_supports_multi_process = tdefault_supports_multi_process; ops->to_thread_architecture = default_thread_architecture; ops->to_supports_btrace = tdefault_supports_btrace; } |