Make {get,set}_inferior_io_terminal inferior methods
[deliverable/binutils-gdb.git] / gdb / fork-child.c
index 90a01b2b16f08332c90fcc09df59718960bb4b2f..bcf077d0ebaa1e66ec0faa572625f2d2fb7fbc01 100644 (file)
@@ -61,8 +61,6 @@ static struct ui *saved_ui = NULL;
 void
 prefork_hook (const char *args)
 {
-  const char *inferior_io_terminal = get_inferior_io_terminal ();
-
   gdb_assert (saved_ui == NULL);
   /* Retain a copy of our UI, since the child will replace this value
      and if we're vforked, we have to restore it.  */
@@ -70,7 +68,7 @@ prefork_hook (const char *args)
 
   /* Tell the terminal handling subsystem what tty we plan to run on;
      it will just record the information for later.  */
-  new_tty_prefork (inferior_io_terminal);
+  new_tty_prefork (current_inferior ()->tty ());
 }
 
 /* See nat/fork-inferior.h.  */
This page took 0.025017 seconds and 4 git commands to generate.