diff options
author | Yao Qi <yao@codesourcery.com> | 2013-08-28 12:25:05 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-08-28 12:25:05 +0000 |
commit | ffa4ac956c9389aee7e46708492f61fdd69cd845 (patch) | |
tree | 8e86ad404795f41d9d7a88dcec2bf69b668f9a33 /gdb/ui-file.h | |
parent | 7e1050317266448c0496db46eadd546410b07c0a (diff) | |
download | binutils-gdb-ffa4ac956c9389aee7e46708492f61fdd69cd845.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.h | 4 |
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); |