Add target_ops argument to to_terminal_init
[deliverable/binutils-gdb.git] / gdb / target.h
index d164a54462a0e4c4303dea1ef0477e19bfcc193d..661b8e91aab634250f639b1af30aad2059d41692 100644 (file)
@@ -487,7 +487,7 @@ struct target_ops
                                              struct expression *);
     int (*to_masked_watch_num_registers) (struct target_ops *,
                                          CORE_ADDR, CORE_ADDR);
-    void (*to_terminal_init) (void);
+    void (*to_terminal_init) (struct target_ops *);
     void (*to_terminal_inferior) (void);
     void (*to_terminal_ours_for_output) (void);
     void (*to_terminal_ours) (void);
@@ -1222,7 +1222,7 @@ extern int target_remove_breakpoint (struct gdbarch *gdbarch,
    before we actually run the inferior.  */
 
 #define target_terminal_init() \
-     (*current_target.to_terminal_init) ()
+     (*current_target.to_terminal_init) (&current_target)
 
 /* Put the inferior's terminal settings into effect.
    This is preparation for starting or resuming the inferior.  */
This page took 0.024393 seconds and 4 git commands to generate.