diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-30 10:29:03 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-26 15:19:13 -0700 |
commit | 1285ce8629b37f800bf21731ee7c7a8b1b8d0233 (patch) | |
tree | ce4a47e09e9f76c5530378cb9db537ae38a92976 /gdb/utils.c | |
parent | 7016a382b0dc48001cb5c36e56b42fc41b1303a8 (diff) | |
download | binutils-1285ce8629b37f800bf21731ee7c7a8b1b8d0233.zip binutils-1285ce8629b37f800bf21731ee7c7a8b1b8d0233.tar.gz binutils-1285ce8629b37f800bf21731ee7c7a8b1b8d0233.tar.bz2 |
Always call the wrap_here method
This changes all existing calls to wrap_here to call the method on the
appropriate ui_file instead. The choice of ui_file is determined by
context.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 3a019d7..96e81c8 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -154,7 +154,7 @@ vwarning (const char *string, va_list args) target_terminal::ours_for_output (); } if (filtered_printing_initialized ()) - wrap_here (0); /* Force out any buffered output. */ + gdb_stdout->wrap_here (0); /* Force out any buffered output. */ gdb_flush (gdb_stdout); if (warning_pre_print) fputs_unfiltered (warning_pre_print, gdb_stderr); @@ -881,7 +881,7 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args) { target_terminal::scoped_restore_terminal_state term_state; target_terminal::ours_for_output (); - wrap_here (0); + gdb_stdout->wrap_here (0); vfprintf_filtered (gdb_stdout, ctlstr, args); printf_filtered (_("(%s or %s) [answered %c; " @@ -1795,8 +1795,8 @@ fputs_maybe_filtered (const char *linebuffer, struct ui_file *stream, if (*lineptr == '\n') { chars_printed = 0; - wrap_here (0); /* Spit out chars, cancel - further wraps. */ + stream->wrap_here (0); /* Spit out chars, cancel + further wraps. */ lines_printed++; /* XXX: The ideal thing would be to call 'stream->putc' here, but we can't because it |