Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-06-21 21:09:33 +0400
committerChristopher Faylor <me@cgf.cx>2010-06-21 21:09:33 +0400
commit74434376cf7acbe13d0b2488df30bcb1f8755a5a (patch)
tree515911d20b30a6f9d5e8dbac320a782accc6dc26
parentd80400d46e93f2a2c49c8a063773cf9002a50f2b (diff)
* dcrt0.cc (__api_fatal): Temporarily generate a stackdump.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/dcrt0.cc3
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c26901e5e..b822077dd 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
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
buffers are in use.
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index d32ff22c9..5dfad7c10 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -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);
}