From 97c7c9bb8c77d519ba87b9c9b2be362d334087b4 Mon Sep 17 00:00:00 2001 From: qiyao Date: Wed, 28 Aug 2013 12:25:05 +0000 Subject: gdb/ * event-top.c (gdb_setup_readline): Call stderr_fileopen instead of stdio_fileopen. * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered. .Call stderr_fileopen instead of stdio_fileopen. * ui-file.c [__MINGW32__] (stderr_file_write): New function. [__MINGW32__] (stderr_file_fputs): New function. (stderr_fileopen): New function. * ui-file.h (stderr_fileopen): Declare. --- gdb/event-top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/event-top.c') diff --git a/gdb/event-top.c b/gdb/event-top.c index f00ab7d84e1..f1d55b3c2da 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -955,7 +955,7 @@ gdb_setup_readline (void) time. */ if (!batch_silent) gdb_stdout = stdio_fileopen (stdout); - gdb_stderr = stdio_fileopen (stderr); + gdb_stderr = stderr_fileopen (); gdb_stdlog = gdb_stderr; /* for moment */ gdb_stdtarg = gdb_stderr; /* for moment */ gdb_stdtargerr = gdb_stderr; /* for moment */ -- cgit v1.2.1