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.
This commit is contained in:
parent
20f0d60db4
commit
3c6618cd22
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2018-11-08 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* python/lib/gdb/command/pretty_printers.py
|
||||||
|
(InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
|
||||||
|
|
||||||
2018-11-08 Tom Tromey <tom@tromey.com>
|
2018-11-08 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
PR gdb/23555:
|
PR gdb/23555:
|
||||||
|
|
|
@ -158,7 +158,7 @@ printer-name;subprinter-name."""
|
||||||
cp.pretty_printers, "progspace",
|
cp.pretty_printers, "progspace",
|
||||||
object_re, name_re, subname_re)
|
object_re, name_re, subname_re)
|
||||||
for objfile in gdb.objfiles():
|
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,
|
objfile.pretty_printers, objfile.filename,
|
||||||
object_re, name_re, subname_re)
|
object_re, name_re, subname_re)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue