Fix output indentation for "info pretty-printers"
authorTom Tromey <tom@tromey.com>
Wed, 7 Nov 2018 03:09:20 +0000 (20:09 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 8 Nov 2018 23:17:01 +0000 (16:17 -0700)
commit3c6618cd22d7f188b7c1a3c87edc8ed2b93fbe41
tree2b017e35ffd564816cba3931bf8a179129610021
parent20f0d60db4fb5083779c4c9182bbc692f7d2bac5
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.
gdb/ChangeLog
gdb/python/lib/gdb/command/pretty_printers.py