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
|
@ -1124,7 +1124,6 @@ captured_main_1 (struct captured_main_args *context)
|
|||
if (print_version)
|
||||
{
|
||||
print_gdb_version (gdb_stdout, false);
|
||||
gdb_stdout->wrap_here (0);
|
||||
gdb_printf ("\n");
|
||||
exit (0);
|
||||
}
|
||||
|
@ -1138,7 +1137,6 @@ captured_main_1 (struct captured_main_args *context)
|
|||
if (print_configuration)
|
||||
{
|
||||
print_gdb_configuration (gdb_stdout);
|
||||
gdb_stdout->wrap_here (0);
|
||||
gdb_printf ("\n");
|
||||
exit (0);
|
||||
}
|
||||
|
@ -1154,7 +1152,6 @@ captured_main_1 (struct captured_main_args *context)
|
|||
print_gdb_version (gdb_stdout, true);
|
||||
if (symarg)
|
||||
gdb_printf ("..");
|
||||
gdb_stdout->wrap_here (0);
|
||||
gdb_printf ("\n");
|
||||
gdb_flush (gdb_stdout); /* Force to screen during slow
|
||||
operations. */
|
||||
|
@ -1175,7 +1172,6 @@ captured_main_1 (struct captured_main_args *context)
|
|||
print_gdb_version (gdb_stdout, true);
|
||||
if (symarg)
|
||||
gdb_printf ("..");
|
||||
gdb_stdout->wrap_here (0);
|
||||
gdb_printf ("\n");
|
||||
gdb_flush (gdb_stdout); /* Force to screen during slow
|
||||
operations. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue