Permalink
Browse files

CPU: Check for INT breakpoints for ANY interrupt, hardware or otherwi…

…se. This makes it possible to debug interrupt handlers
  • Loading branch information...
joncampbell123 committed Mar 16, 2018
1 parent e39a10d commit c63f98945beec1b2fc1a4b6ba5b514d3365b24a3
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/cpu/cpu.cpp
View
@@ -839,6 +839,16 @@ void CPU_Interrupt(Bitu num,Bitu type,Bitu oldeip) {
lastint=num;
FillFlags();
#if C_DEBUG
# if C_HEAVY_DEBUG
bool DEBUG_IntBreakpoint(Bit8u intNum);
Bitu DEBUG_EnableDebugger(void);
if (type != CPU_INT_SOFTWARE) { /* CPU core already takes care of SW interrupts */
if (DEBUG_IntBreakpoint(num))
DEBUG_EnableDebugger();
}
# endif
switch (num) {
case 0xcd:
#if C_HEAVY_DEBUG

0 comments on commit c63f989

Please sign in to comment.