This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: always flush gdb_stdout after reading symbols


Some MI tests were getting confused when one command's output didn't
appear until after the next command had been issued.

2002-11-25  Jim Blandy  <jimb@redhat.com>

	* symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
	|| info_verbose isn't true.

Index: gdb/symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.71
diff -c -r1.71 symfile.c
*** gdb/symfile.c	17 Oct 2002 21:16:12 -0000	1.71
--- gdb/symfile.c	25 Nov 2002 19:57:38 -0000
***************
*** 907,915 ****
        else
  	{
  	  printf_filtered ("done.\n");
- 	  gdb_flush (gdb_stdout);
  	}
      }
  
    if (objfile->sf == NULL)
      return objfile;	/* No symbols. */
--- 907,919 ----
        else
  	{
  	  printf_filtered ("done.\n");
  	}
      }
+ 
+   /* We print some messages regardless of whether 'from_tty ||
+      info_verbose' is true, so make sure they go out at the right
+      time.  */
+   gdb_flush (gdb_stdout);
  
    if (objfile->sf == NULL)
      return objfile;	/* No symbols. */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]