GNU bug report logs - #14597
24.3.50; Can't stop the program being debugged with gdb-mi

Previous Next

Package: emacs;

Reported by: daimrod <at> gmail.com (Grégoire Jadi)

Date: Wed, 12 Jun 2013 07:57:01 UTC

Severity: normal

Merged with 16745

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daimrod <daimrod <at> gmail.com>
To: 14597 <at> debbugs.gnu.org
Subject: bug#14597: 24.3.50; Can't stop the program being debugged with gdb-mi
Date: Tue, 25 Jun 2013 18:53:23 +0200
[Message part 1 (text/plain, inline)]
daimrod <at> gmail.com (Grégoire Jadi) writes:

> `gdb-io-stop' fails to stop the program being debugged when using the
> GDB/MI interface (M-x gdb run gdb -i=mi). C-c C-z also fails to stop the
> program. However, no error is reported, it fails silently, without doing
> anything.
>
> Recipe:
>
> emacs -Q
> M-x cd RET path/to/emacs-sources/src RET
> M-x gdb RET (edit the minibuffer to use "gdb -i=mi ./emacs") RET
> gdb> run -Q
> [emacs starts]
> Now try C-c C-z in *gud-emacs* or M-x gdb-io-stop RET
>
> This bug is only present when using the GDB/MI interpreter. It doesn't
> happen using just the GUD interaction buffer interface (with M-x gud-gdb
> RET), C-c C-z and `gdb-io-stop' can be used to stop the program being
> debugged in *gud-emacs*.

Here a workaround, it sends a raw string with "C-z" instead of a signal.
There is probably a nicer solution but I don't know `gdb-mi.el' and the
GDB/MI interface enough.

With this, C-c C-z can be used in the gdb-inferior-io buffer to stop the
program being debugged.

[0001-lisp-progmodes-gdb-mi.el-gdb-io-stop-Temporarily-wor.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]

-- 
Daimrod/Greg

This bug report was last modified 4 years and 313 days ago.

Previous Next


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