if (options->prettyformat_arrays)
{
gdb_printf (stream, ",\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else
{
else if (options->prettyformat_arrays)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
stream->wrap_here (2 + 2 * recurse);
maybe_print_array_index (index_type, i + low, stream, options);
if (options->prettyformat_arrays)
{
gdb_printf (stream, ",\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else
{
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else
{
&& options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
gdb_printf (stream, ")");
gdb_puts (_("] "), stream);
}
-/* Use 'print_spaces_filtered', but take into consideration the
+/* Use 'print_spaces', but take into consideration the
type_print_options FLAGS in order to determine how many whitespaces
will be printed. */
(int level, struct ui_file *stream, const struct type_print_options *flags)
{
if (!flags->print_offsets)
- print_spaces_filtered (level, stream);
+ print_spaces (level, stream);
else
- print_spaces_filtered (level + print_offset_data::indentation, stream);
+ print_spaces (level + print_offset_data::indentation, stream);
}
/* Output an access specifier to STREAM, if needed. LAST_ACCESS is the
if (flags->print_offsets)
podata->update (type, i, stream);
- print_spaces_filtered (level + 4, stream);
+ print_spaces (level + 4, stream);
if (is_static)
gdb_printf (stream, "static ");
if (show > 0)
podata->finish (type, level, stream);
- print_spaces_filtered (print_offset_data::indentation, stream);
+ print_spaces (print_offset_data::indentation, stream);
if (level == 0)
- print_spaces_filtered (2, stream);
+ print_spaces (2, stream);
}
gdb_printf (stream, "%*s}", level, "");
for (i = 0; i < len; i++)
{
QUIT;
- print_spaces_filtered (level + 4, stream);
+ print_spaces (level + 4, stream);
/* We pass "show" here and not "show - 1" to get enum types
printed. There's no other way to see them. */
c_print_type_1 (type->field (i).type (),
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
}
}
if (test_flags (unfiltered_output))
gdb_printf (m_streams.back (), "%*s", numspaces, "");
else
- print_spaces_filtered (numspaces, m_streams.back ());
+ print_spaces (numspaces, m_streams.back ());
}
void
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
gdb_puts ("members of ", stream);
gdb_puts (type->name (), stream);
gdb_puts (":", stream);
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else
{
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
} /* if there are data fields */
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
gdb_puts ("<", stream);
/* Not sure what the best notation is in the case where there is
if (pretty)
{
gdb_puts ("\n", stream);
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else
stream->wrap_here (2 + 2 *recurse);
if (pretty)
{
gdb_puts ("\n", stream);
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
gdb_puts ("...", stream);
}
if (pretty)
{
gdb_puts ("\n", stream);
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
gdb_puts ("}", stream);
}
{
QUIT;
- print_spaces_filtered (level + 4, stream);
+ print_spaces (level + 4, stream);
fputs_styled (type->field (i).name (),
variable_name_style.style (), stream);
gdb_puts (" : ", stream);
}
}
- print_spaces_filtered (level + 4, stream);
+ print_spaces (level + 4, stream);
if (field_is_static (&type->field (i)))
gdb_printf (stream, "static ");
print_type (type->field (i).type (),
}
}
- print_spaces_filtered (level + 4, stream);
+ print_spaces (level + 4, stream);
if (TYPE_FN_FIELD_STATIC_P (f, j))
gdb_printf (stream, "static ");
if (TYPE_TARGET_TYPE (TYPE_FN_FIELD_TYPE (f, j)) == 0)
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
}
}
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
gdb_puts ("members of ", stream);
gdb_puts (type->name (), stream);
gdb_puts (": ", stream);
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else
{
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
}
gdb_printf (stream, "}");
if (options->prettyformat)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
gdb_puts ("<", stream);
/* Not sure what the best notation is in the case where there is no
if (pretty)
{
gdb_puts ("\n", stream);
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else
stream->wrap_here (2 + 2 *recurse);
if (pretty)
{
gdb_puts ("\n", stream);
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
gdb_puts ("...", stream);
}
if (pretty)
{
gdb_puts ("\n", stream);
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
gdb_puts ("}", stream);
}
enum tab_stops { value_column_1 = 15 };
gdb_puts (name, file);
- print_spaces_filtered (value_column_1 - strlen (name), file);
+ print_spaces (value_column_1 - strlen (name), file);
try
{
if (options->prettyformat)
{
gdb_puts ("\n", stream);
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else if (!first_field)
gdb_puts (" ", stream);
if (options->prettyformat)
{
gdb_puts ("\n", stream);
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
if (is_tuple || is_tuple_struct)
/* For a tuple struct we print the type but nothing
else. */
if (!for_rust_enum || flags->print_offsets)
- print_spaces_filtered (level + 2, stream);
+ print_spaces (level + 2, stream);
if (is_enum)
fputs_styled (type->field (i).name (), variable_name_style.style (),
stream);
/* Undo the temporary level increase we did above. */
level -= 2;
podata->finish (type, level, stream);
- print_spaces_filtered (print_offset_data::indentation, stream);
+ print_spaces (print_offset_data::indentation, stream);
if (level == 0)
- print_spaces_filtered (2, stream);
+ print_spaces (2, stream);
}
if (!for_rust_enum || flags->print_offsets)
- print_spaces_filtered (level, stream);
+ print_spaces (level, stream);
gdb_puts (is_tuple_struct ? ")" : "}", stream);
}
else
section = NULL;
- print_spaces_filtered (depth, outfile);
+ print_spaces (depth, outfile);
if (symbol->domain () == LABEL_DOMAIN)
{
gdb_printf (outfile, "label %s at ", symbol->print_name ());
{
if (field_is_static (&type->field (field_idx)))
{
- print_spaces_filtered (indentation, stream);
+ print_spaces (indentation, stream);
return;
}
maybe_print_hole (stream, bitpos, "padding");
gdb_puts ("\n", stream);
- print_spaces_filtered (level + 4 + print_offset_data::indentation, stream);
+ print_spaces (level + 4 + print_offset_data::indentation, stream);
gdb_printf (stream, "/* total size (bytes): %4s */\n",
pulongest (TYPE_LENGTH (type)));
}
/* Print N spaces. */
void
-print_spaces_filtered (int n, struct ui_file *stream)
+print_spaces (int n, struct ui_file *stream)
{
gdb_puts (n_spaces (n), stream);
}
extern void printf_unfiltered (const char *, ...) ATTRIBUTE_PRINTF (1, 2);
-extern void print_spaces_filtered (int, struct ui_file *);
+extern void print_spaces (int, struct ui_file *);
extern const char *n_spaces (int);
if (options->prettyformat_arrays)
{
gdb_printf (stream, ",\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
else
gdb_printf (stream, ", ");
else if (options->prettyformat_arrays)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 + 2 * recurse, stream);
+ print_spaces (2 + 2 * recurse, stream);
}
stream->wrap_here (2 + 2 * recurse);
maybe_print_array_index (index_type, i + low_bound,
if (options->prettyformat_arrays)
{
gdb_printf (stream, "\n");
- print_spaces_filtered (2 * recurse, stream);
+ print_spaces (2 * recurse, stream);
}
}