diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-30 10:23:18 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-26 15:19:13 -0700 |
commit | 7016a382b0dc48001cb5c36e56b42fc41b1303a8 (patch) | |
tree | 5190cb314252a75138fabb04aa925355e8f9f0a4 /gdb/cli-out.c | |
parent | 6c92c339539ec87dc12783e9c8f1688a4a370c03 (diff) | |
download | gdb-7016a382b0dc48001cb5c36e56b42fc41b1303a8.zip gdb-7016a382b0dc48001cb5c36e56b42fc41b1303a8.tar.gz gdb-7016a382b0dc48001cb5c36e56b42fc41b1303a8.tar.bz2 |
Add ui_file::wrap_here
Right now, wrap_here is a global function. In the long run, we'd like
output streams to be relatively self-contained objects, and having a
global function like this is counter to that goal. Also, existing
code freely mixes writes to some parameterized stream with calls to
wrap_here -- but wrap_here only really affects gdb_stdout, so this is
also incoherent.
This step is a patch toward making wrap_here more sane. It adds a
wrap_here method to ui_file and changes ui_out implementations to use
it.
Diffstat (limited to 'gdb/cli-out.c')
-rw-r--r-- | gdb/cli-out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli-out.c b/gdb/cli-out.c index 925ba8a..b2daad1 100644 --- a/gdb/cli-out.c +++ b/gdb/cli-out.c @@ -243,7 +243,7 @@ cli_ui_out::do_wrap_hint (int indent) if (m_suppress_output) return; - wrap_here (indent); + m_streams.back ()->wrap_here (indent); } void |