]> git.eshelyaron.com Git - emacs.git/commit
Fix target-async and background execution in gdb-mi.el
authorWang Diancheng <dianchengwang@gmail.com>
Fri, 30 Jun 2023 07:08:18 +0000 (15:08 +0800)
committerEli Zaretskii <eliz@gnu.org>
Thu, 6 Jul 2023 06:58:18 +0000 (09:58 +0300)
commitcb906249450aeec41f73273b69af097e84cc681a
treebfc474356b4df880273d887c7e3cc7a91023deb2
parent47cbecb47487794902319f16204b66e04ba1ec91
Fix target-async and background execution in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdb-target-async-checked): New
variable.
(gdb-non-stop-setting): Change the value back to default to
non-nil on systems other than MS-Windows.
(gdb-non-stop-handler): Try to set mi-async first, falling back to
target-async by calling 'gdb-set-mi-async-handler'.
(gdb-set-mi-async-handler, gdb-try-check-target-async-support):
New functions.
(gdb-check-target-async): Set 'gdb-non-stop' here...
(gdb-starting): ...and here.
(gdb-stopped): Call 'gdb-try-check-target-async-support' when the
program stops for the first time.  (Bug#64186)  (Bug#63084)

Copyright-paperwork-exempt: yes
lisp/progmodes/gdb-mi.el