]> git.eshelyaron.com Git - emacs.git/commit
Remove low-level keyboard hook when attaching GDB to Emacs on Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 7 Sep 2024 08:15:43 +0000 (11:15 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 8 Sep 2024 11:24:08 +0000 (13:24 +0200)
commit457e210efe359e48e18cfdf0676f69d26b70133c
tree3173a1ce279c6e2a09594ba9b4f847d464a7c832
parent31322104a2aa9ebf1220e55c0c44cb505c06ab21
Remove low-level keyboard hook when attaching GDB to Emacs on Windows

This fixes the problem whereby attaching GDB to a running Emacs
on MS-Windows would slow down keyboard input, because the
low-level keyboard hook installed by Emacs at startup was still
installed, but with Emacs stopped, the hook code couldn't run,
and therefore the OS would time-out waiting for the hook to
return.  Now when GDB is attached to Emacs, it will remove the
hook right away.
* src/.gdbinit: Call 'remove_w32_kbdhook' if the keyboard hook is
already installed.
* src/alloc.c (defined_WINDOWSNT): New enum.
(gdb_make_enums_visible): Add 'defined_WINDOWSNT'.

(cherry picked from commit 358208dfaa374cc71c4a1c081c2d5bff9127c55a)
src/.gdbinit
src/alloc.c