diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:53:15 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | d0b1020bf1f9f0e3824d61cd3821e3ea7773f828 (patch) | |
tree | f179b275ca3e0d104e84a8009c8a73fcfdd4b53e /gdb/rust-lang.c | |
parent | 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (diff) | |
download | gdb-d0b1020bf1f9f0e3824d61cd3821e3ea7773f828.zip gdb-d0b1020bf1f9f0e3824d61cd3821e3ea7773f828.tar.gz gdb-d0b1020bf1f9f0e3824d61cd3821e3ea7773f828.tar.bz2 |
Rename print_spaces_filtered
print_spaces_filtered is now misnamed, because whether filtering
happens is up to the stream. So, rename it.
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 45a6d2f..836ea37 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -372,7 +372,7 @@ rust_language::val_print_struct 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); @@ -393,7 +393,7 @@ rust_language::val_print_struct if (options->prettyformat) { gdb_puts ("\n", stream); - print_spaces_filtered (2 * recurse, stream); + print_spaces (2 * recurse, stream); } if (is_tuple || is_tuple_struct) @@ -707,7 +707,7 @@ rust_print_struct_def (struct type *type, const char *varstring, /* 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); @@ -733,12 +733,12 @@ rust_print_struct_def (struct type *type, const char *varstring, /* 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); } |