[gdb/testsuite] Fix "unable to find usable gdb" error with cc-with-tweaks.exp
[deliverable/binutils-gdb.git] / gdb / top.c
index 9a1c258d3f7456be6d915defad85523853bb7008..bacd684dbaaf005e95226c4222829d9f250ac300 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -657,7 +657,8 @@ execute_command (const char *p, int from_tty)
    temporarily set to true.  */
 
 std::string
-execute_command_to_string (const char *p, int from_tty)
+execute_command_to_string (const char *p, int from_tty,
+                          bool term_out)
 {
   /* GDB_STDOUT should be better already restored during these
      restoration callbacks.  */
@@ -665,7 +666,7 @@ execute_command_to_string (const char *p, int from_tty)
 
   scoped_restore save_async = make_scoped_restore (&current_ui->async, 0);
 
-  string_file str_file;
+  string_file str_file (term_out);
 
   {
     current_uiout->redirect (&str_file);
This page took 0.023518 seconds and 4 git commands to generate.