[PATCH 2/2] winedbg: only check for break/watch points on first chance exceptions

Peter Oberndorfer kumbayo84 at arcor.de
Tue May 22 11:28:55 CDT 2007


---
Previously it was checked if a break / watchpoint triggered even on second chance exceptions
(but breakpoints are always handled on first chance)
this could produce problems in following situation

1 byte instruction (breakpoint placed here)
int3

when the int3 raises a second chance exception eip points at the int3 itself,
but is decreased by 1 in context fixup of winedbg (break_adjust_pc)
then it is checked if a breakpoint is hit, which will lead winedbg to think it broke on the breakpoint just before int3
this fixes the problem by only checking for break/watch points on first chance exceptions

 programs/winedbg/break.c      |   11 +++++++++--
 programs/winedbg/debugger.h   |    2 +-
 programs/winedbg/tgt_active.c |   13 ++++++++++---
 3 files changed, 20 insertions(+), 6 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5d795959379d905b8807f7734f4089a96d92e3ea.diff
Type: text/x-patch
Size: 3454 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070522/68a96c7b/5d795959379d905b8807f7734f4089a96d92e3ea.bin


More information about the wine-patches mailing list