summaryrefslogtreecommitdiff
path: root/gdb/m2-valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m2-valprint.c')
-rw-r--r--gdb/m2-valprint.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/gdb/m2-valprint.c b/gdb/m2-valprint.c
index 3fd46b25a38..9e3f16a896f 100644
--- a/gdb/m2-valprint.c
+++ b/gdb/m2-valprint.c
@@ -81,7 +81,7 @@ m2_print_long_set (struct type *type, const gdb_byte *valaddr,
type = check_typedef (type);
- fprintf_filtered (stream, "{");
+ gdb_printf (stream, "{");
len = type->num_fields ();
if (get_long_set_bounds (type, &low_bound, &high_bound))
{
@@ -112,7 +112,7 @@ m2_print_long_set (struct type *type, const gdb_byte *valaddr,
if (! element_seen)
{
if (! empty_set)
- fprintf_filtered (stream, ", ");
+ gdb_printf (stream, ", ");
print_type_scalar (target, i, stream);
empty_set = 0;
element_seen = 1;
@@ -125,7 +125,7 @@ m2_print_long_set (struct type *type, const gdb_byte *valaddr,
if (element_seen)
{
if (previous_low+1 < previous_high)
- fprintf_filtered (stream, "..");
+ gdb_printf (stream, "..");
if (previous_low+1 < previous_high)
print_type_scalar (target, previous_high, stream);
element_seen = 0;
@@ -146,12 +146,12 @@ m2_print_long_set (struct type *type, const gdb_byte *valaddr,
{
if (previous_low+1 < previous_high)
{
- fprintf_filtered (stream, "..");
+ gdb_printf (stream, "..");
print_type_scalar (target, previous_high, stream);
}
element_seen = 0;
}
- fprintf_filtered (stream, "}");
+ gdb_printf (stream, "}");
}
}
@@ -175,9 +175,9 @@ m2_print_unbounded_array (struct value *value,
addr);
len = unpack_field_as_long (type, valaddr, 1);
- fprintf_filtered (stream, "{");
+ gdb_printf (stream, "{");
m2_print_array_contents (val, stream, recurse, options, len);
- fprintf_filtered (stream, ", HIGH = %d}", (int) len);
+ gdb_printf (stream, ", HIGH = %d}", (int) len);
}
static int
@@ -200,7 +200,7 @@ print_unpacked_pointer (struct type *type,
if (options->addressprint && options->format != 's')
{
- fputs_filtered (paddress (gdbarch, address), stream);
+ gdb_puts (paddress (gdbarch, address), stream);
want_space = 1;
}
@@ -213,7 +213,7 @@ print_unpacked_pointer (struct type *type,
&& addr != 0)
{
if (want_space)
- fputs_filtered (" ", stream);
+ gdb_puts (" ", stream);
return val_print_string (TYPE_TARGET_TYPE (type), NULL, addr, -1,
stream, options);
}
@@ -232,9 +232,9 @@ print_variable_at_address (struct type *type,
CORE_ADDR addr = unpack_pointer (type, valaddr);
struct type *elttype = check_typedef (TYPE_TARGET_TYPE (type));
- fprintf_filtered (stream, "[");
- fputs_filtered (paddress (gdbarch, addr), stream);
- fprintf_filtered (stream, "] : ");
+ gdb_printf (stream, "[");
+ gdb_puts (paddress (gdbarch, addr), stream);
+ gdb_printf (stream, "] : ");
if (elttype->code () != TYPE_CODE_UNDEF)
{
@@ -244,7 +244,7 @@ print_variable_at_address (struct type *type,
common_val_print (deref_val, stream, recurse, options, current_language);
}
else
- fputs_filtered ("???", stream);
+ gdb_puts ("???", stream);
}
@@ -274,9 +274,9 @@ m2_print_array_contents (struct value *val,
options);
else
{
- fprintf_filtered (stream, "{");
+ gdb_printf (stream, "{");
value_print_array_elements (val, stream, recurse, options, 0);
- fprintf_filtered (stream, "}");
+ gdb_printf (stream, "}");
}
}
}
@@ -342,10 +342,10 @@ m2_language::value_print_inner (struct value *val, struct ui_file *stream,
}
else
{
- fprintf_filtered (stream, "{");
+ gdb_printf (stream, "{");
value_print_array_elements (val, stream, recurse,
options, 0);
- fprintf_filtered (stream, "}");
+ gdb_printf (stream, "}");
}
break;
}
@@ -368,7 +368,7 @@ m2_language::value_print_inner (struct value *val, struct ui_file *stream,
case TYPE_CODE_UNION:
if (recurse && !options->unionprint)
{
- fprintf_filtered (stream, "{...}");
+ gdb_printf (stream, "{...}");
break;
}
/* Fall through. */
@@ -397,7 +397,7 @@ m2_language::value_print_inner (struct value *val, struct ui_file *stream,
int i;
int need_comma = 0;
- fputs_filtered ("{", stream);
+ gdb_puts ("{", stream);
i = get_discrete_bounds (range, &low_bound, &high_bound) ? 0 : -1;
maybe_bad_bstring:
@@ -420,7 +420,7 @@ m2_language::value_print_inner (struct value *val, struct ui_file *stream,
if (element)
{
if (need_comma)
- fputs_filtered (", ", stream);
+ gdb_puts (", ", stream);
print_type_scalar (range, i, stream);
need_comma = 1;
@@ -429,7 +429,7 @@ m2_language::value_print_inner (struct value *val, struct ui_file *stream,
{
int j = i;
- fputs_filtered ("..", stream);
+ gdb_puts ("..", stream);
while (i + 1 <= high_bound
&& value_bit_index (type, valaddr, ++i))
j = i;
@@ -438,7 +438,7 @@ m2_language::value_print_inner (struct value *val, struct ui_file *stream,
}
}
done:
- fputs_filtered ("}", stream);
+ gdb_puts ("}", stream);
}
break;