]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add target_ops argument to to_terminal_ours_for_output
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:30:36 +0000 (21:30 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:45:38 +0000 (07:45 -0700)
2014-02-19  Pedro Alves  <palves@redhat.com>
    Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_terminal_ours_for_output>: Add
argument.
(target_terminal_ours_for_output): Add argument.
* target.c (debug_to_terminal_ours_for_output): Add argument.
(update_current_target): Update.
* inflow.c (terminal_ours_for_output): Add 'self' argument.
* inferior.h (terminal_ours_for_output): Add 'self' argument.
* go32-nat.c (go32_terminal_ours): Add 'self' argument.

gdb/ChangeLog
gdb/inferior.h
gdb/inflow.c
gdb/target.c
gdb/target.h

index a817e1b175c0c0fe799116b2cfa001a653c2d17f..175f9f43ab7a6f56717164c5a540d906638ec557 100644 (file)
@@ -1,3 +1,15 @@
+2014-02-19  Pedro Alves  <palves@redhat.com>
+           Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
+       argument.
+       (target_terminal_ours_for_output): Add argument.
+       * target.c (debug_to_terminal_ours_for_output): Add argument.
+       (update_current_target): Update.
+       * inflow.c (terminal_ours_for_output): Add 'self' argument.
+       * inferior.h (terminal_ours_for_output): Add 'self' argument.
+       * go32-nat.c (go32_terminal_ours): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_terminal_inferior>: Add
index 5acbee4cb6a20abcd595e50a5c72354d0ad431b2..f298403297033ce8702db8d0370e4d44da3489d2 100644 (file)
@@ -174,7 +174,7 @@ extern void child_terminal_info (const char *, int);
 
 extern void term_info (char *, int);
 
-extern void terminal_ours_for_output (void);
+extern void terminal_ours_for_output (struct target_ops *self);
 
 extern void terminal_inferior (struct target_ops *self);
 
index 72706f57efb343de551f939e09ad9cf2d3e54b53..8d9a7f38b9f6e26112b928e75cd93345ca2eb482 100644 (file)
@@ -353,7 +353,7 @@ terminal_inferior (struct target_ops *self)
    should be called to get back to a normal state of affairs.  */
 
 void
-terminal_ours_for_output (void)
+terminal_ours_for_output (struct target_ops *self)
 {
   terminal_ours_1 (1);
 }
index f3a6b8012e73f25c57334967a84660138fb01dad..1f56a0a4918fd2ef83c3a025c6847ac81d3b5760 100644 (file)
@@ -136,7 +136,7 @@ static void debug_to_terminal_init (struct target_ops *self);
 
 static void debug_to_terminal_inferior (struct target_ops *self);
 
-static void debug_to_terminal_ours_for_output (void);
+static void debug_to_terminal_ours_for_output (struct target_ops *self);
 
 static void debug_to_terminal_save_ours (void);
 
@@ -775,7 +775,7 @@ update_current_target (void)
            (void (*) (struct target_ops *))
            target_ignore);
   de_fault (to_terminal_ours_for_output,
-           (void (*) (void))
+           (void (*) (struct target_ops *))
            target_ignore);
   de_fault (to_terminal_ours,
            (void (*) (void))
@@ -4815,9 +4815,9 @@ debug_to_terminal_inferior (struct target_ops *self)
 }
 
 static void
-debug_to_terminal_ours_for_output (void)
+debug_to_terminal_ours_for_output (struct target_ops *self)
 {
-  debug_target.to_terminal_ours_for_output ();
+  debug_target.to_terminal_ours_for_output (&debug_target);
 
   fprintf_unfiltered (gdb_stdlog, "target_terminal_ours_for_output ()\n");
 }
index bb68ac0bedfd5bdd7bfc465136a1d15d9c1981d4..ffe49190e44fb8f609474e809591f06ec12e3b5a 100644 (file)
@@ -489,7 +489,7 @@ struct target_ops
                                          CORE_ADDR, CORE_ADDR);
     void (*to_terminal_init) (struct target_ops *);
     void (*to_terminal_inferior) (struct target_ops *);
-    void (*to_terminal_ours_for_output) (void);
+    void (*to_terminal_ours_for_output) (struct target_ops *);
     void (*to_terminal_ours) (void);
     void (*to_terminal_save_ours) (void);
     void (*to_terminal_info) (const char *, int);
@@ -1238,7 +1238,7 @@ extern void target_terminal_inferior (void);
    should be called to get back to a normal state of affairs.  */
 
 #define target_terminal_ours_for_output() \
-     (*current_target.to_terminal_ours_for_output) ()
+     (*current_target.to_terminal_ours_for_output) (&current_target)
 
 /* Put our terminal settings into effect.
    First record the inferior's terminal settings