GNU bug report logs -
#14597
24.3.50; Can't stop the program being debugged with gdb-mi
Previous Next
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
Message #13 received at 14597 <at> debbugs.gnu.org (full text, mbox):
Daimrod <daimrod <at> gmail.com> 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.
[...]
> 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.
[...]
> - (stop-process
> - (get-buffer-process gud-comint-buffer) comint-ptyp))
> + (process-send-string (get-buffer-process
> + (gdb-get-buffer-create 'gdb-inferior-io))
> + (kbd "C-z")))
There were unfortunately no comments at the time (seven years ago), but
the code in gdb-mi essentially looks the same to this day.
I'm not very familiar with gdb-mi, though -- does anybody have an
opinion here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
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.