Commit 7ba6502d authored by Glenn Wurster's avatar Glenn Wurster Committed by Alexandre Julliard

Don't pass on EH_STACK_INVALID exceptions.

parent 3433676f
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
* for that) * for that)
* + set a mode where winedbg would start (postmortem debugging) from a minidump * + set a mode where winedbg would start (postmortem debugging) from a minidump
* - CPU adherence * - CPU adherence
* + we always assume the stack grows has an i386 (ie downwards) * + we always assume the stack grows as on i386 (ie downwards)
* - UI * - UI
* + enable back the limited output (depth of structure printing and number of * + enable back the limited output (depth of structure printing and number of
* lines) * lines)
...@@ -609,7 +609,8 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance ...@@ -609,7 +609,8 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance
return DBG_CONTINUE; return DBG_CONTINUE;
} }
if (first_chance && !is_debug && !DBG_IVAR(BreakOnFirstChance)) if (first_chance && !is_debug && !DBG_IVAR(BreakOnFirstChance) &&
!(rec->ExceptionFlags & EH_STACK_INVALID))
{ {
/* pass exception to program except for debug exceptions */ /* pass exception to program except for debug exceptions */
return DBG_EXCEPTION_NOT_HANDLED; return DBG_EXCEPTION_NOT_HANDLED;
...@@ -726,6 +727,9 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance ...@@ -726,6 +727,9 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance
break; break;
} }
} }
if( (rec->ExceptionFlags & EH_STACK_INVALID) ) {
dbg_printf( ", invalid program stack" );
}
if (dbg_action_mode == automatic_mode) if (dbg_action_mode == automatic_mode)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment