diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-01 12:18:47 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | dcf1a2c8d2f5776796927d147f40214d23c818de (patch) | |
tree | ae0e553b000e0a12d62adf7428c5393bb78f736e /gdb/event-top.c | |
parent | 830df12588cfa80be673e710bee22761752ead11 (diff) | |
download | fsf-binutils-gdb-dcf1a2c8d2f5776796927d147f40214d23c818de.zip fsf-binutils-gdb-dcf1a2c8d2f5776796927d147f40214d23c818de.tar.gz fsf-binutils-gdb-dcf1a2c8d2f5776796927d147f40214d23c818de.tar.bz2 |
Only have one API for unfiltered output
At the end of this series, the use of unfiltered output will be very
restricted -- only places that definitely need it will use it. To
this end, I thought it would be good to reduce the number of
_unfiltered APIs that are exposed. This patch changes gdb so that
only printf_unfiltered exists. (After this patch, the f* variants
still exist as well, but those will be removed later.)
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r-- | gdb/event-top.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 3ba7239..7de3c91 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -673,11 +673,7 @@ handle_line_of_input (struct buffer *cmd_line_buffer, cmd_line_buffer->used_size = 0; if (from_tty && annotation_level > 1) - { - printf_unfiltered (("\n\032\032post-")); - puts_unfiltered (annotation_suffix); - printf_unfiltered (("\n")); - } + printf_unfiltered (("\n\032\032post-%s\n"), annotation_suffix); #define SERVER_COMMAND_PREFIX "server " server_command = startswith (cmd, SERVER_COMMAND_PREFIX); |