diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-30 09:46:02 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-26 15:19:13 -0700 |
commit | 6c92c339539ec87dc12783e9c8f1688a4a370c03 (patch) | |
tree | 5f3d0621646cae14436ab8e63edcf3542c236f86 /gdb/ada-valprint.c | |
parent | bbea68079781ac4c2fc941867ee9888585cafb77 (diff) | |
download | fsf-binutils-gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.zip fsf-binutils-gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.tar.gz fsf-binutils-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/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index 70e4696..352568d 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -178,7 +178,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); } - wrap_here (n_spaces (2 + 2 * recurse)); + wrap_here (2 + 2 * recurse); maybe_print_array_index (index_type, i + low, stream, options); i0 = i; @@ -235,7 +235,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, { fprintf_filtered (stream, ", "); } - wrap_here (n_spaces (2 + 2 * recurse)); + wrap_here (2 + 2 * recurse); maybe_print_array_index (index_type, j + low, stream, options); } @@ -614,7 +614,7 @@ print_field_values (struct value *value, struct value *outer_value, } else { - wrap_here (n_spaces (2 + 2 * recurse)); + wrap_here (2 + 2 * recurse); } annotate_field_begin (type->field (i).type ()); |