aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-02 11:53:15 -0700
committerTom Tromey <tom@tromey.com>2022-03-29 12:46:24 -0600
commitd0b1020bf1f9f0e3824d61cd3821e3ea7773f828 (patch)
treef179b275ca3e0d104e84a8009c8a73fcfdd4b53e /gdb/python
parent6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (diff)
downloadbinutils-d0b1020bf1f9f0e3824d61cd3821e3ea7773f828.zip
binutils-d0b1020bf1f9f0e3824d61cd3821e3ea7773f828.tar.gz
binutils-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/python')
-rw-r--r--gdb/python/py-prettyprint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index a88a9f5..c9bbd72 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -471,7 +471,7 @@ print_children (PyObject *printer, const char *hint,
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);
@@ -550,14 +550,14 @@ print_children (PyObject *printer, const char *hint,
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);
}