trace_param[1] = pc + len;
}
+static void debug_continue(void)
+{
+ set_special(SPCFLAG_BRK);
+}
+
bool debug_enforcer(void)
{
if (!break_if_enforcer)
static uaecptr nxdis, nxmem, asmaddr;
static bool ppcmode, asmmode;
+static bool parsecmd(TCHAR *cmd, bool *out)
+{
+ if (!_tcsicmp(cmd, _T("reset"))) {
+ deactivate_debugger();
+ debug_continue();
+ uae_reset(0, 0);
+ return true;
+ }
+ if (!_tcsicmp(cmd, _T("reseth"))) {
+ deactivate_debugger();
+ debug_continue();
+ uae_reset(1, 0);
+ return true;
+ }
+ if (!_tcsicmp(cmd, _T("resetk"))) {
+ deactivate_debugger();
+ debug_continue();
+ uae_reset(0, 1);
+ return true;
+ }
+ return false;
+}
+
static bool debug_line (TCHAR *input)
{
TCHAR cmd, *inptr;
}
}
+ ignore_ws(&inptr);
+ if (parsecmd(inptr, &err)) {
+ return err;
+ }
cmd = next_char (&inptr);
switch (cmd)
}
}
-static void debug_continue(void)
-{
- set_special (SPCFLAG_BRK);
-}
-
void debug_exception(int nr)
{
if (debug_illegal) {