mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
dbghelp: In i386 stack unwinder, only check for NULL ebp after calling the dwarf/MSVC unwinders as they allow NULL ebp.
This commit is contained in:
parent
0905afd0bc
commit
90207b1d69
1 changed files with 3 additions and 2 deletions
|
@ -115,6 +115,7 @@ static BOOL fetch_next_frame32(struct cpu_stack_walk* csw,
|
|||
/* do a simple unwind using ebp
|
||||
* we assume a "regular" prologue in the function has been used
|
||||
*/
|
||||
if (!context->Ebp) return FALSE;
|
||||
context->Esp = context->Ebp + 2 * sizeof(DWORD);
|
||||
if (!sw_read_mem(csw, context->Ebp + sizeof(DWORD), &val32, sizeof(DWORD)))
|
||||
{
|
||||
|
@ -273,7 +274,6 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
|
|||
}
|
||||
else
|
||||
{
|
||||
if (frame->AddrFrame.Offset == 0) goto done_err;
|
||||
if (frame->AddrFrame.Mode == AddrModeFlat)
|
||||
{
|
||||
assert(curr_mode == stm_32bit);
|
||||
|
@ -389,7 +389,8 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
|
|||
frame->AddrPC = frame->AddrReturn;
|
||||
frame->AddrStack.Offset = frame->AddrFrame.Offset + 2 * sizeof(WORD);
|
||||
/* "pop up" previous BP value */
|
||||
if (!sw_read_mem(csw, sw_xlat_addr(csw, &frame->AddrFrame),
|
||||
if (!frame->AddrFrame.Offset ||
|
||||
!sw_read_mem(csw, sw_xlat_addr(csw, &frame->AddrFrame),
|
||||
&val16, sizeof(WORD)))
|
||||
goto done_err;
|
||||
frame->AddrFrame.Offset = val16;
|
||||
|
|
Loading…
Reference in a new issue