This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/19809] New: expose ui-out to python and let python install global ui-out
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 11 Mar 2016 18:00:42 +0000
- Subject: [Bug python/19809] New: expose ui-out to python and let python install global ui-out
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19809
Bug ID: 19809
Summary: expose ui-out to python and let python install global
ui-out
Product: gdb
Version: unknown
Status: NEW
Severity: enhancement
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
I wanted to colorize "bt" output. I managed to do this well enough with a
frame
filter:
https://github.com/tromey/gdb-helpers/blob/master/gdbhelpers/colorize.py
However, it occurred to me that I could colorize many more things if I could
install my own global ui-out object from Python. There I could recognize table
and field names and apply colorizations before output. It seems like this
could
let me write my own gdb pager as well.
Another way this feature could be used would be to support a new ui-out
parameter
to gdb.execute, so that Python could invoke arbitrary gdb commands and get
structured output.
--
You are receiving this mail because:
You are on the CC list for the bug.