daimrod@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.