1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00
emacs/nt/inc
Eli Zaretskii 7afa4f300b Support recovery from C stack overflow on MS-Windows
* src/w32fns.c (w32_reset_stack_overflow_guard)
(stack_overflow_handler): New functions for handling C stack
overflow exceptions.
(my_exception_handler): Handle EXCEPTION_STACK_OVERFLOW exceptions
specially, and zero out except_addr if we do.
(globals_of_w32fns): Initialize dwMainThreadId in non-interactive
mode.
* src/sysdep.c [HAVE_STACK_OVERFLOW_HANDLING]: Add !WINDOWSNT to
the condition, as HAVE_STACK_OVERFLOW_HANDLING is now defined for
the MinGW build, but the code guarded by that is for Posix hosts.
* src/keyboard.c (command_loop) [WINDOWSNT]: Call
w32_reset_stack_overflow_guard.

* nt/inc/ms-w32.h (sigjmp_buf): New typedef.
(sigsetjmp): New macro.
(w32_reset_stack_overflow_guard): Declare the prototype.

* configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Set to 1 for MinGW.
2015-08-08 11:12:06 +03:00
..
arpa Nuke arch-tags. 2011-01-15 15:16:57 -08:00
netinet Nuke arch-tags. 2011-01-15 15:16:57 -08:00
sys Update copyright year to 2015 2015-01-01 14:26:41 -08:00
dirent.h Dirent functions and directory-files are converted and work. 2013-11-09 14:49:02 +02:00
grp.h Update copyright year to 2015 2015-01-01 14:26:41 -08:00
inttypes.h Update copyright year to 2015 2015-01-01 14:26:41 -08:00
langinfo.h Update copyright year to 2015 2015-01-01 14:26:41 -08:00
mingw_time.h Attempt to fix time_t related problems with MinGW 4.0 runtime. 2013-10-14 19:23:10 +03:00
ms-w32.h Support recovery from C stack overflow on MS-Windows 2015-08-08 11:12:06 +03:00
netdb.h Nuke arch-tags. 2011-01-15 15:16:57 -08:00
nl_types.h Update copyright year to 2015 2015-01-01 14:26:41 -08:00
pwd.h Fix warnings when compiling on MS-Windows with -std=gnu99. 2012-10-17 21:02:44 +02:00
stdalign.h MS-Windows followup for 2012-07-28T23:05:32Z!eggert@cs.ucla.edu. 2012-07-29 18:43:09 +03:00
stdbool.h Fix the MS-Windows build broken by 2011-01-30T23:34:18Z!eggert@cs.ucla.edu and 2011-01-31T08:15:13Z!eggert@cs.ucla.edu. 2011-01-31 21:36:08 +02:00
stdint.h Update copyright year to 2015 2015-01-01 14:26:41 -08:00
unistd.h Merge from trunk and resolve conflicts. 2013-03-28 20:13:59 +02:00