aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-11-06 20:09:20 -0700
committerTom Tromey <tom@tromey.com>2018-11-08 16:17:01 -0700
commit3c6618cd22d7f188b7c1a3c87edc8ed2b93fbe41 (patch)
tree2b017e35ffd564816cba3931bf8a179129610021 /gdb/python
parent20f0d60db4fb5083779c4c9182bbc692f7d2bac5 (diff)
downloadgdb-3c6618cd22d7f188b7c1a3c87edc8ed2b93fbe41.zip
gdb-3c6618cd22d7f188b7c1a3c87edc8ed2b93fbe41.tar.gz
gdb-3c6618cd22d7f188b7c1a3c87edc8ed2b93fbe41.tar.bz2
Fix output indentation for "info pretty-printers"
I noticed that "info pretty-printers" will indent the "objfile" line like: (top-gdb) info pretty-printer global pretty-printers: builtin mpx_bound128 objfile /home/tromey/gdb/build/gdb/gdb pretty-printers: type_lookup_function I think the "objfile" line should be "out-dented", following the same style as the "global" and "progspace" (not shown) lines. This patch implements this. gdb/ChangeLog 2018-11-08 Tom Tromey <tom@tromey.com> * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/lib/gdb/command/pretty_printers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/command/pretty_printers.py b/gdb/python/lib/gdb/command/pretty_printers.py
index 429505f..9788218 100644
--- a/gdb/python/lib/gdb/command/pretty_printers.py
+++ b/gdb/python/lib/gdb/command/pretty_printers.py
@@ -158,7 +158,7 @@ printer-name;subprinter-name."""
cp.pretty_printers, "progspace",
object_re, name_re, subname_re)
for objfile in gdb.objfiles():
- self.invoke1(" objfile %s pretty-printers:" % objfile.filename,
+ self.invoke1("objfile %s pretty-printers:" % objfile.filename,
objfile.pretty_printers, objfile.filename,
object_re, name_re, subname_re)