From: Tom Tromey Date: Wed, 7 Nov 2018 03:09:20 +0000 (-0700) Subject: Fix output indentation for "info pretty-printers" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c6618cd22d7f188b7c1a3c87edc8ed2b93fbe41;p=binutils-gdb.git 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 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter.invoke): Don't indent "objfile" heading. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3a4db38e05e..8bb9685701a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-11-08 Tom Tromey + + * python/lib/gdb/command/pretty_printers.py + (InfoPrettyPrinter.invoke): Don't indent "objfile" heading. + 2018-11-08 Tom Tromey PR gdb/23555: diff --git a/gdb/python/lib/gdb/command/pretty_printers.py b/gdb/python/lib/gdb/command/pretty_printers.py index 429505f93ec..9788218942b 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)