aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-typeprint.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/p-typeprint.c
parent7016a382b0dc48001cb5c36e56b42fc41b1303a8 (diff)
downloadfsf-binutils-gdb-1285ce8629b37f800bf21731ee7c7a8b1b8d0233.zip
fsf-binutils-gdb-1285ce8629b37f800bf21731ee7c7a8b1b8d0233.tar.gz
fsf-binutils-gdb-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/p-typeprint.c')
-rw-r--r--gdb/p-typeprint.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c
index a105d29..18c9ab9 100644
--- a/gdb/p-typeprint.c
+++ b/gdb/p-typeprint.c
@@ -287,7 +287,7 @@ pascal_language::print_func_args (struct type *type, struct ui_file *stream,
if (i > 0)
{
fputs_filtered (", ", stream);
- wrap_here (4);
+ stream->wrap_here (4);
}
/* Can we find if it is a var parameter ??
if ( TYPE_FIELD(type, i) == )
@@ -419,7 +419,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int
section_type;
QUIT;
- wrap_here (4);
+ stream->wrap_here (4);
if (type == NULL)
{
fputs_styled ("<type unknown>", metadata_style.style (), stream);
@@ -487,7 +487,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int
fprintf_filtered (stream, "case <?> of ");
struct_union:
- wrap_here (4);
+ stream->wrap_here (4);
if (show < 0)
{
/* If we just printed a tag name, no need to print anything else. */
@@ -692,7 +692,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int
/* enum is just defined by
type enume_name = (enum_member1,enum_member2,...) */
fprintf_filtered (stream, " = ");
- wrap_here (4);
+ stream->wrap_here (4);
if (show < 0)
{
/* If we just printed a tag name, no need to print anything else. */
@@ -709,7 +709,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int
QUIT;
if (i)
fprintf_filtered (stream, ", ");
- wrap_here (4);
+ stream->wrap_here (4);
fputs_filtered (type->field (i).name (), stream);
if (lastval != type->field (i).loc_enumval ())
{