aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-30 10:29:03 -0700
committerTom Tromey <tom@tromey.com>2022-01-26 15:19:13 -0700
commit1285ce8629b37f800bf21731ee7c7a8b1b8d0233 (patch)
treece4a47e09e9f76c5530378cb9db537ae38a92976 /gdb/printcmd.c
parent7016a382b0dc48001cb5c36e56b42fc41b1303a8 (diff)
downloadbinutils-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/printcmd.c')
-rw-r--r--gdb/printcmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index e1444ac..ab87310 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -317,7 +317,7 @@ print_formatted (struct value *val, int size,
case 'i':
/* We often wrap here if there are long symbolic names. */
- wrap_here (4);
+ stream->wrap_here (4);
next_address = (value_address (val)
+ gdb_print_insn (type->arch (),
value_address (val), stream,
@@ -826,7 +826,7 @@ find_instruction_backward (struct gdbarch *gdbarch, CORE_ADDR addr,
is calculated after the loop. */
printf_filtered (_("No line number information available "
"for address "));
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
print_address (gdbarch, loop_start - 1, gdb_stdout);
printf_filtered ("\n");
break;
@@ -1498,7 +1498,7 @@ output_command (const char *exp, int from_tty)
annotate_value_end ();
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
gdb_flush (gdb_stdout);
}
@@ -2895,7 +2895,7 @@ printf_command (const char *arg, int from_tty)
{
ui_printf (arg, gdb_stdout);
reset_terminal_style (gdb_stdout);
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
gdb_stdout->flush ();
}