This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/19809] New: expose ui-out to python and let python install global ui-out


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]