Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [RFC] A graphical counterpart to the TUI, written in Python
@ 2026-11-18 14:11 Tomas Hrnciar via Gdb
  0 siblings, 0 replies; only message in thread
From: Tomas Hrnciar via Gdb @ 2026-11-18 14:11 UTC (permalink / raw)
  To: gdb

Hello,

For the past couple of months I've been working on a side project based on
an idea from Andrew Burgess: a graphical counterpart to the TUI, written in
Python on top of GDB's Python API. I now have a working proof of concept,
and I'd like to find out whether it is worth continuing and, potentially,
integrating into GDB.

It uses only the Python standard library; the GUI is built with Tkinter.
Like the TUI, it is enabled with "gui enable", and the GUI and CLI stay in
sync in both directions: "frame 2" or "break foo.c:42" typed at the prompt
is reflected in the window, and clicking a frame or the line-number gutter
in the window updates GDB's state.

Code and a screenshot: https://github.com/hrnciar/pygui

You can try it with:

  gdb <your-program>
  (gdb) source /path/to/pygui.py
  (gdb) gui enable

Implemented features:

- source and assembly views, with a toggle between them
- program controls: run, continue, interrupt, step(i), next(i), finish
- backtrace view; clicking a frame selects it
- breakpoints: set or remove by clicking the gutter, enable/disable
- locals view for the selected frame
- status bar showing the program state

The script is growing and will need to be split into smaller files, but for
the demo purpose it is easier to source just one file into GDB to play with
it.

I'd appreciate it if you could try it out and provide feedback. Is this
something the community would be interested in? Feel free to open issue if
you find any bugs or missing features.

Tomáš

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-18 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 14:11 [RFC] A graphical counterpart to the TUI, written in Python Tomas Hrnciar via Gdb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox