Remove unnecessary calls to wrap_here and gdb_flush
Various spots in gdb currently know about the wrap buffer, and so are careful to call wrap_here to be certain that all output has been flushed. Now that the pager is just an ordinary stream, this isn't needed, and a simple call to gdb_flush is enough. Similarly, there are places where gdb prints to gdb_stderr, but first flushes gdb_stdout. stderr_file already flushes gdb_stdout, so these aren't needed.
This commit is contained in:
parent
6b0c115423
commit
ebfc93611b
7 changed files with 3 additions and 21 deletions
|
@ -146,9 +146,6 @@ vwarning (const char *string, va_list args)
|
|||
term_state.emplace ();
|
||||
target_terminal::ours_for_output ();
|
||||
}
|
||||
if (filtered_printing_initialized ())
|
||||
gdb_stdout->wrap_here (0); /* Force out any buffered output. */
|
||||
gdb_flush (gdb_stdout);
|
||||
if (warning_pre_print)
|
||||
gdb_puts (warning_pre_print, gdb_stderr);
|
||||
gdb_vprintf (gdb_stderr, string, args);
|
||||
|
@ -650,9 +647,6 @@ void
|
|||
print_sys_errmsg (const char *string, int errcode)
|
||||
{
|
||||
const char *err = safe_strerror (errcode);
|
||||
/* We want anything which was printed on stdout to come out first, before
|
||||
this message. */
|
||||
gdb_flush (gdb_stdout);
|
||||
gdb_printf (gdb_stderr, "%s: %s.\n", string, err);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue