* exceptions.cc (stackdump): Avoid dumping more than once.
This commit is contained in:
@ -262,13 +262,16 @@ static void
|
||||
stackdump (DWORD ebp, int open_file, bool isexception)
|
||||
{
|
||||
extern unsigned long rlim_core;
|
||||
static bool already_dumped;
|
||||
|
||||
if (rlim_core == 0UL)
|
||||
if (rlim_core == 0UL || (open_file && already_dumped))
|
||||
return;
|
||||
|
||||
if (open_file)
|
||||
open_stackdumpfile ();
|
||||
|
||||
already_dumped = true;
|
||||
|
||||
int i;
|
||||
|
||||
thestack.init (ebp, 1, !isexception); /* Initialize from the input CONTEXT */
|
||||
|
Reference in New Issue
Block a user