Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tomas Hrnciar via Gdb <gdb@sourceware.org>
To: gdb@sourceware.org
Subject: [RFC] A graphical counterpart to the TUI, written in Python
Date: Wed, 18 Nov 2026 15:11:26 +0100	[thread overview]
Message-ID: <CALkDUM9QH6MQe12K56+3XPAjnLy-c=CXqomgOu8Zk_w3U6vstA@mail.gmail.com> (raw)

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áš

                 reply	other threads:[~2026-11-18 14:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALkDUM9QH6MQe12K56+3XPAjnLy-c=CXqomgOu8Zk_w3U6vstA@mail.gmail.com' \
    --to=gdb@sourceware.org \
    --cc=thrnciar@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox