aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-30 09:46:02 -0700
committerTom Tromey <tom@tromey.com>2022-01-26 15:19:13 -0700
commit6c92c339539ec87dc12783e9c8f1688a4a370c03 (patch)
tree5f3d0621646cae14436ab8e63edcf3542c236f86 /gdb/printcmd.c
parentbbea68079781ac4c2fc941867ee9888585cafb77 (diff)
downloadgdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.zip
gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.tar.gz
gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.tar.bz2
Convert wrap_here to use integer parameter
I think it only really makes sense to call wrap_here with an argument consisting solely of spaces. Given this, it seemed better to me that the argument be an int, rather than a string. This patch is the result. Much of it was written by a script.
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 fdbe72b..e1444ac 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 (" ");
+ 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 (" ");
+ 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 ("");
+ 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 ("");
+ wrap_here (0);
gdb_stdout->flush ();
}