winedbg: Fix stepping over an instruction.

This commit is contained in:
Petr Tesarik 2006-03-24 12:46:10 +01:00 committed by Alexandre Julliard
parent 404eadc775
commit 68f8d28945

View File

@ -731,9 +731,9 @@ BOOL break_should_continue(ADDRESS* addr, DWORD code, int* count, BOOL* is_break
if (code == EXCEPTION_BREAKPOINT) if (code == EXCEPTION_BREAKPOINT)
addr->Offset += be_cpu->adjust_pc_for_break(&dbg_context, TRUE); addr->Offset += be_cpu->adjust_pc_for_break(&dbg_context, TRUE);
dbg_curr_thread->stopped_xpoint = find_xpoint(addr, be_xpoint_break);
dbg_curr_process->bp[0].enabled = FALSE; /* disable the step-over breakpoint */ dbg_curr_process->bp[0].enabled = FALSE; /* disable the step-over breakpoint */
dbg_curr_thread->stopped_xpoint = find_xpoint(addr, be_xpoint_break);
if (dbg_curr_thread->stopped_xpoint > 0) if (dbg_curr_thread->stopped_xpoint > 0)
{ {
if (!should_stop(dbg_curr_thread->stopped_xpoint)) return TRUE; if (!should_stop(dbg_curr_thread->stopped_xpoint)) return TRUE;
@ -744,6 +744,7 @@ BOOL break_should_continue(ADDRESS* addr, DWORD code, int* count, BOOL* is_break
return FALSE; return FALSE;
} }
if(dbg_curr_thread->stopped_xpoint < 0)
dbg_curr_thread->stopped_xpoint = find_xpoint(addr, be_xpoint_watch_exec); dbg_curr_thread->stopped_xpoint = find_xpoint(addr, be_xpoint_watch_exec);
if (dbg_curr_thread->stopped_xpoint > 0) if (dbg_curr_thread->stopped_xpoint > 0)
{ {
@ -759,6 +760,7 @@ BOOL break_should_continue(ADDRESS* addr, DWORD code, int* count, BOOL* is_break
return FALSE; return FALSE;
} }
if(dbg_curr_thread->stopped_xpoint < 0)
dbg_curr_thread->stopped_xpoint = find_triggered_watch(&oldval); dbg_curr_thread->stopped_xpoint = find_triggered_watch(&oldval);
if (dbg_curr_thread->stopped_xpoint > 0) if (dbg_curr_thread->stopped_xpoint > 0)
{ {