Improve reporting of fatal exception on MS-Windows, to aid debugging #15994.
commiteb65988b79f2d9a40203cf2def8fe57b7899fed9
authorEli Zaretskii <eliz@gnu.org>
Mon, 2 Dec 2013 17:28:17 +0000 (2 19:28 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 2 Dec 2013 17:28:17 +0000 (2 19:28 +0200)
treed71f97f10f365da457b8e0e659399d8b0993d1f6
parentbabc40c41c5cb6922e3e7887244e8319ecf65e75
Improve reporting of fatal exception on MS-Windows, to aid debugging #15994.

 src/w32fns.c (my_exception_handler): New function.
 (globals_of_w32fns): Set it up as the unhandled exception
 handler.  Initialize exception code and address to zeros.
 (emacs_abort): If the exception code and address are available,
 print them at the beginning of the backtrace.  Fix the format of
 printing addresses (was producing 0x0x12345678 on XP).
src/ChangeLog
src/w32fns.c