* updated kmbox (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / emulators / dosbox / int3_debug.patch
blob1a6037185bc4ab697d259e24ea1c8c1512930e19
1 Index: src/cpu/core_full/op.h
2 ===================================================================
3 --- ./src/cpu/core_full/op.h (revision 4019)
4 +++ ./src/cpu/core_full/op.h (working copy)
5 @@ -358,7 +358,7 @@
6 case O_INT:
7 #if C_DEBUG
8 FillFlags();
9 - if (((inst.entry & 0xFF)==0xcc) && DEBUG_Breakpoint())
10 + if (((inst.entry & 0xFF)==0xcc) && (DEBUG_Breakpoint() || DEBUG_IntBreakpoint(3)))
11 return debugCallback;
12 else if (DEBUG_IntBreakpoint(inst_op1_b))
13 return debugCallback;
14 Index: src/cpu/core_normal/prefix_none.h
15 ===================================================================
16 --- ./src/cpu/core_normal/prefix_none.h (revision 4019)
17 +++ ./src/cpu/core_normal/prefix_none.h (working copy)
18 @@ -743,7 +743,7 @@
19 CASE_B(0xcc) /* INT3 */
20 #if C_DEBUG
21 FillFlags();
22 - if (DEBUG_Breakpoint())
23 + if (DEBUG_Breakpoint() || DEBUG_IntBreakpoint(3))
24 return debugCallback;
25 #endif
26 CPU_SW_Interrupt_NoIOPLCheck(3,GETIP);