[Bug python/24201] New: Allow Python pretty printers to return other printers as children
matthew.mcallister.0 at gmail dot com
sourceware-bugzilla@sourceware.org
Sat Feb 9 23:29:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=24201
Bug ID: 24201
Summary: Allow Python pretty printers to return other printers
as children
Product: gdb
Version: 8.2
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: matthew.mcallister.0 at gmail dot com
Target Milestone: ---
It would make pretty printing more flexible if the 'children' method of the
pretty printer interface could return any Python object that implements the
printer interface.
An example use case is a struct like 'struct { size_t len; Elem *array; /*other
fields*/ }'. The printer for this struct could return as one of its children a
dummy printer whose own children are the elements of the array; GDB would then
handle the formatting.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list