GNU bug report logs - #63084
30.0.50; gud: set breakpoint while program is running

Previous Next

Package: emacs;

Reported by: tatrics <at> gmail.com

Date: Wed, 26 Apr 2023 03:56:03 UTC

Severity: normal

Merged with 64186

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 63084 <at> debbugs.gnu.org (full text, mbox):

From: TatriX <tatrics <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 63084 <at> debbugs.gnu.org, kbrown <at> cornell.edu
Subject: Re: bug#63084: 30.0.50; gud: set breakpoint while program is running
Date: Sun, 28 May 2023 23:10:21 +0200
[Message part 1 (text/plain, inline)]
Nice! Thank you!

I tend to use `M-x gdb` with `gdb-many-windows` disabled but easily
reachable via a custom keybinding that toggles it.

One feature I'm really missing is a variable watcher.

There's a locals view which is useful sometimes, but gets messy when
there are handfull of variables in scope.  Then there's a speedbar,
but as far as I can tell it's impossible to make it into a regular
window, which means it and cannot participate in my regular emacs
window workflow, which is sub-optimal. But the biggest issue with it
is that it forgets what was added to it on every program restart,
making it pretty much unusable for my needs.

I've played a bit with gdb-mi and managed to make something that
somewhat works. Please check a screenshot in the attachment.

I can add variables to watch via the minibuffer. They get updated in
the *gdb-watch* window through `-data-evaluate-expression` in the
`gdb-stopped-functions` hook.

I've also started looking at "GDB/MI Variable Objects"(1) which looks
like a proper way to add that functionality. But it requires a bit
more work.

How do you feel about having something similar in gdb-mi?

1: https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Variable-Objects.html#GDB_002fMI-Variable-Objects
[2023-05-28-225817_3838x2124_scrot.png (image/png, attachment)]

This bug report was last modified 1 year and 316 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.