* dcrt0.cc (__api_fatal): Temporarily generate a stackdump.

This commit is contained in:
Christopher Faylor 2010-06-21 17:09:33 +00:00
parent d80400d46e
commit 74434376cf
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-06-21 Christopher Faylor <me+cygwin@cgf.cx>
* dcrt0.cc (__api_fatal): Temporarily generate a stackdump.
2010-06-21 Christopher Faylor <me+cygwin@cgf.cx>
* tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many

View File

@ -1145,6 +1145,8 @@ _exit (int n)
do_exit (((DWORD) n & 0xff) << 8);
}
extern "C" void cygwin_stackdump ();
extern "C" void
__api_fatal (const char *fmt, ...)
{
@ -1160,6 +1162,7 @@ __api_fatal (const char *fmt, ...)
#ifdef DEBUGGING
try_to_debug ();
#endif
cygwin_stackdump ();
myself.exit (__api_fatal_exit_val);
}