]> git.eshelyaron.com Git - emacs.git/commit
Support SIGTRAP in kill emulation on Windows
authorAlain Schneble <a.s@realize.ch>
Sat, 8 Oct 2016 13:52:40 +0000 (16:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Oct 2016 13:52:40 +0000 (16:52 +0300)
commitf3eedc7e68d0e8b97425b72d691593d06639df88
tree8382915bdc2da6b10293e2c86c8b1306e6567373
parent67d14c8222c05ac20229f71a2cf40eb9e3efa053
Support SIGTRAP in kill emulation on Windows

* src/w32proc.c (sys_kill): Translate SIGTRAP signal into a call to
'DebugBreakProcess' to cause a breakpoint exception to occur in the
specified process.  On Windows versions prior to Windows XP that do
not support 'DebugBreakProcess' return -1 and set errno to ENOTSUP
(as opposed to EINVAL before this change).
* src/w32proc.c: Add typedef for 'DebugBreakProcess' function pointer
and global variable to track state of run-time dynamic linking of this
function.

* etc/NEWS: Add entry to document that 'signal-process' now supports
SIGTRAP.
etc/NEWS
src/w32.c
src/w32proc.c