2011-08-04 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / cli / cli-logging.c
index d0e25ea555073fcbc884123ad3ee45c28c30c813..46f89c0333b3b09ad0d120cecef11d06da745e4a 100644 (file)
@@ -81,6 +81,7 @@ set_logging_redirect (char *args, int from_tty, struct cmd_list_element *c)
 {
   struct cleanup *cleanups = NULL;
   struct ui_file *output, *new_logging_no_redirect_file;
+  struct ui_out *uiout = current_uiout;
 
   if (saved_filename == NULL
       || (logging_redirect != 0 && logging_no_redirect_file == NULL)
@@ -166,7 +167,7 @@ pop_output_files (void)
   saved_output.targ = NULL;
   saved_output.targerr = NULL;
 
-  ui_out_redirect (uiout, NULL);
+  ui_out_redirect (current_uiout, NULL);
 }
 
 /* This is a helper for the `set logging' command.  */
@@ -226,7 +227,7 @@ handle_redirections (int from_tty)
   gdb_stdtarg = output;
   gdb_stdtargerr = output;
 
-  if (ui_out_redirect (uiout, output) < 0)
+  if (ui_out_redirect (current_uiout, output) < 0)
     warning (_("Current output protocol does not support redirection"));
 }
 
This page took 0.023538 seconds and 4 git commands to generate.