summaryrefslogtreecommitdiff
path: root/gdb/ui-file.h
diff options
context:
space:
mode:
authorqiyao <qiyao>2013-08-28 12:25:05 +0000
committerqiyao <qiyao>2013-08-28 12:25:05 +0000
commit97c7c9bb8c77d519ba87b9c9b2be362d334087b4 (patch)
treed706066e4cd70a3a05bb11aabe2d54a0a8482aa0 /gdb/ui-file.h
parent64c0bdc1fa9e2290f94327b90b7c7dd19828154e (diff)
downloadgdb-97c7c9bb8c77d519ba87b9c9b2be362d334087b4.tar.gz
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.
Diffstat (limited to 'gdb/ui-file.h')
-rw-r--r--gdb/ui-file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ui-file.h b/gdb/ui-file.h
index 9fef68c656d..ba0a9083e02 100644
--- a/gdb/ui-file.h
+++ b/gdb/ui-file.h
@@ -129,6 +129,10 @@ extern struct ui_file *mem_fileopen (void);
/* Open/create a STDIO based UI_FILE using the already open FILE. */
extern struct ui_file *stdio_fileopen (FILE *file);
+/* Create a ui_file from stderr. */
+extern struct ui_file *stderr_fileopen (void);
+
+
/* Open NAME returning an STDIO based UI_FILE. */
extern struct ui_file *gdb_fopen (const char *name, const char *mode);