aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-12-27 00:13:57 +0000
committerCorinna Vinschen <corinna@vinschen.de>2000-12-27 00:13:57 +0000
commit8a93913d2652b0f3f42b5d2d9214e16a1f115494 (patch)
treeb00e45a538ce607b2ee15c2b8b0994a2f154c17a /winsup/cygwin/exceptions.cc
parent2803e941b340e21113bfff9e22e1bc25ba5f9990 (diff)
downloadnewlib-8a93913d2652b0f3f42b5d2d9214e16a1f115494.zip
newlib-8a93913d2652b0f3f42b5d2d9214e16a1f115494.tar.gz
newlib-8a93913d2652b0f3f42b5d2d9214e16a1f115494.tar.bz2
* cygwin.din: Add symbols for `getrlimit' and `setrlimit'.
* exceptions.cc (stackdump): Avoid creating stackdump when `rlim_core' is 0. * resource.cc: New global variable `rlim_core'. (getrlimit): New function. (setrlimit): Ditto. include/cygwin/version.h: Bump minor API version to 32 due to adding `getrlimit' and `setrlimit'. include/sys/resource.h: Add defines, types and prototypes for `getrlimit' and `setrlimit'.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index c50e5c1..9b13a00 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -381,7 +381,12 @@ try_to_debug ()
static void
stackdump (EXCEPTION_RECORD *e, CONTEXT *in)
{
+ extern unsigned long rlim_core;
const char *p;
+
+ if (rlim_core == 0UL)
+ return;
+
if (myself->progname[0])
{
/* write to progname.stackdump if possible */