return 0;
}
+static void
+delegate_terminal_init (struct target_ops *self)
+{
+ self = self->beneath;
+ self->to_terminal_init (self);
+}
+
+static void
+tdefault_terminal_init (struct target_ops *self)
+{
+}
+
+static void
+delegate_terminal_inferior (struct target_ops *self)
+{
+ self = self->beneath;
+ self->to_terminal_inferior (self);
+}
+
+static void
+tdefault_terminal_inferior (struct target_ops *self)
+{
+}
+
+static void
+delegate_terminal_ours_for_output (struct target_ops *self)
+{
+ self = self->beneath;
+ self->to_terminal_ours_for_output (self);
+}
+
+static void
+tdefault_terminal_ours_for_output (struct target_ops *self)
+{
+}
+
+static void
+delegate_terminal_ours (struct target_ops *self)
+{
+ self = self->beneath;
+ self->to_terminal_ours (self);
+}
+
+static void
+tdefault_terminal_ours (struct target_ops *self)
+{
+}
+
+static void
+delegate_terminal_save_ours (struct target_ops *self)
+{
+ self = self->beneath;
+ self->to_terminal_save_ours (self);
+}
+
+static void
+tdefault_terminal_save_ours (struct target_ops *self)
+{
+}
+
+static void
+delegate_terminal_info (struct target_ops *self, const char *arg1, int arg2)
+{
+ self = self->beneath;
+ self->to_terminal_info (self, arg1, arg2);
+}
+
+static void
+delegate_load (struct target_ops *self, char *arg1, int arg2)
+{
+ self = self->beneath;
+ self->to_load (self, arg1, arg2);
+}
+
+static void
+tdefault_load (struct target_ops *self, char *arg1, int arg2)
+{
+ tcomplain ();
+}
+
+static void
+delegate_post_startup_inferior (struct target_ops *self, ptid_t arg1)
+{
+ self = self->beneath;
+ self->to_post_startup_inferior (self, arg1);
+}
+
+static void
+tdefault_post_startup_inferior (struct target_ops *self, ptid_t arg1)
+{
+}
+
static void
delegate_rcmd (struct target_ops *self, char *arg1, struct ui_file *arg2)
{
ops->to_region_ok_for_hw_watchpoint = delegate_region_ok_for_hw_watchpoint;
if (ops->to_can_accel_watchpoint_condition == NULL)
ops->to_can_accel_watchpoint_condition = delegate_can_accel_watchpoint_condition;
+ if (ops->to_terminal_init == NULL)
+ ops->to_terminal_init = delegate_terminal_init;
+ if (ops->to_terminal_inferior == NULL)
+ ops->to_terminal_inferior = delegate_terminal_inferior;
+ if (ops->to_terminal_ours_for_output == NULL)
+ ops->to_terminal_ours_for_output = delegate_terminal_ours_for_output;
+ if (ops->to_terminal_ours == NULL)
+ ops->to_terminal_ours = delegate_terminal_ours;
+ if (ops->to_terminal_save_ours == NULL)
+ ops->to_terminal_save_ours = delegate_terminal_save_ours;
+ if (ops->to_terminal_info == NULL)
+ ops->to_terminal_info = delegate_terminal_info;
+ if (ops->to_load == NULL)
+ ops->to_load = delegate_load;
+ if (ops->to_post_startup_inferior == NULL)
+ ops->to_post_startup_inferior = delegate_post_startup_inferior;
if (ops->to_rcmd == NULL)
ops->to_rcmd = delegate_rcmd;
if (ops->to_can_async_p == NULL)
ops->to_watchpoint_addr_within_range = default_watchpoint_addr_within_range;
ops->to_region_ok_for_hw_watchpoint = default_region_ok_for_hw_watchpoint;
ops->to_can_accel_watchpoint_condition = tdefault_can_accel_watchpoint_condition;
+ ops->to_terminal_init = tdefault_terminal_init;
+ ops->to_terminal_inferior = tdefault_terminal_inferior;
+ ops->to_terminal_ours_for_output = tdefault_terminal_ours_for_output;
+ ops->to_terminal_ours = tdefault_terminal_ours;
+ ops->to_terminal_save_ours = tdefault_terminal_save_ours;
+ ops->to_terminal_info = default_terminal_info;
+ ops->to_load = tdefault_load;
+ ops->to_post_startup_inferior = tdefault_post_startup_inferior;
ops->to_rcmd = default_rcmd;
ops->to_can_async_p = find_default_can_async_p;
ops->to_is_async_p = find_default_is_async_p;