Changes for new debugger functionalities:
starting/stepping into INTs. processor status log, step over rep instr., debug.com, heavy debugging switch Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@411
This commit is contained in:
parent
174ed12a92
commit
ac29b40919
7 changed files with 487 additions and 198 deletions
|
@ -880,7 +880,7 @@ restart:
|
|||
case 0xcc: /* INT3 */
|
||||
INTERRUPT(3);
|
||||
#if C_DEBUG
|
||||
return 0;
|
||||
return 1;
|
||||
#endif
|
||||
break;
|
||||
case 0xcd: /* INT Ib */
|
||||
|
@ -888,7 +888,7 @@ restart:
|
|||
Bit8u num=Fetchb();
|
||||
#if C_DEBUG
|
||||
SAVEIP;
|
||||
if (DEBUG_IntBreakpoint(num)) return 0;
|
||||
if (DEBUG_IntBreakpoint(num)) return 1;
|
||||
#endif
|
||||
INTERRUPT(num);
|
||||
}
|
||||
|
@ -1079,7 +1079,7 @@ restart:
|
|||
goto reploop;
|
||||
#ifdef CPU_386
|
||||
case 0x66:
|
||||
Rep_66(direct,from,to);
|
||||
Rep_66(direct,from,to,repcheck);
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ void Interrupt(Bit8u num) {
|
|||
E_Exit("Call to interrupt 0xCD this is BAD");
|
||||
case 0x03:
|
||||
#if C_DEBUG
|
||||
if (DEBUG_BreakPoint()) return;
|
||||
if (DEBUG_Breakpoint()) return;
|
||||
#endif
|
||||
break;
|
||||
case 0x05:
|
||||
|
|
|
@ -67,6 +67,10 @@ static Bitu CPU_Real_16_Slow_Decode(Bits count) {
|
|||
do {
|
||||
#if C_DEBUG
|
||||
cycle_count++;
|
||||
#endif
|
||||
#if C_HEAVY_DEBUG
|
||||
SAVEIP;
|
||||
if (DEBUG_HeavyIsBreakpoint()) return CBRET_NONE;
|
||||
#endif
|
||||
#include "core_16/main.h"
|
||||
} while (--count>0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue