GDB Stub: Initial commit

This commit is contained in:
RichardG867
2022-03-12 20:20:25 -03:00
parent a924622216
commit 94be8cdfc6
10 changed files with 1112 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
#include <86box/fdd.h>
#include <86box/fdc.h>
#include <86box/machine.h>
#include <86box/gdbstub.h>
#include "386_common.h"
#ifdef USE_NEW_DYNAREC
#include "codegen.h"
@@ -256,6 +257,11 @@ exec386(int cycs)
if (TIMER_VAL_LESS_THAN_VAL(timer_target, (uint32_t) tsc))
timer_process_inline();
#ifdef USE_GDBSTUB
if (gdbstub_singlestep)
return;
#endif
}
}
}

View File

@@ -34,6 +34,7 @@
#include <86box/pic.h>
#include <86box/ppi.h>
#include <86box/timer.h>
#include <86box/gdbstub.h>
/* Is the CPU 8088 or 8086. */
int is8086 = 0;
@@ -2832,5 +2833,10 @@ execx86(int cycs)
cpu_alu_op = 0;
}
#ifdef USE_GDBSTUB
if (gdbstub_singlestep)
return;
#endif
}
}