* 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'.
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user