GNU bug report logs - #18294
24.3; gud and/or gdb: Add hooks to detect when a source file is visited during debugging

Previous Next

Package: emacs;

Reported by: Yuri Khan <yuri.v.khan <at> gmail.com>

Date: Tue, 19 Aug 2014 05:01:01 UTC

Severity: wishlist

Found in version 24.3

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Yuri Khan <yuri.v.khan <at> gmail.com>, 18294 <at> debbugs.gnu.org
Subject: bug#18294: 24.3; gud and/or gdb: Add hooks to detect when a source file is visited during debugging
Date: Thu, 21 Aug 2014 11:24:27 +0200
> I am writing a minor mode to control the debugger from a source buffer
> by pressing single-letter keystrokes, e.g. "n" for gud-next, etc. The
> mode itself is very simple — it has a keymap, and it sets the buffer
> read-only while it is active so as to free these keys from their usual
> 'self-insert-command' bindings.
[...]
> It would be nice if gdb-mi.el provided hooks that I could add to
> instead of advising gdb functions.

I'd like such a thing.  But wouldn't it be easier to do this right in
gdb-mi.el?  All I'd need is a simple key combination to toggle this
behavior off whenever I want to modify code on the fly.  The next "run"
would then turn the behavior on again.

martin





This bug report was last modified 10 years and 291 days ago.

Previous Next


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