diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-12-19 13:28:18 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-12-19 13:28:18 -0800 |
commit | 7b8127d36a9c6a824da4f1709bdee12c40c631a5 (patch) | |
tree | 33d0e6914620deaee1296f1672091c5b79793778 /debug.c | |
parent | 11861fca5815015b2afb712f328195c5f7bc231e (diff) |
Mostly working changes to allow support for multiple emulated system types in main blastem program
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -603,7 +603,7 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst, break; } value = strtol(param, NULL, 16); - insert_breakpoint(context, value, (uint8_t *)debugger); + insert_breakpoint(context, value, debugger); new_bp = malloc(sizeof(bp_def)); new_bp->next = breakpoints; new_bp->address = value; @@ -620,7 +620,7 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst, break; } value = strtol(param, NULL, 16); - insert_breakpoint(context, value, (uint8_t *)debugger); + insert_breakpoint(context, value, debugger); return 0; case 'd': if (input_buf[1] == 'i') { @@ -682,7 +682,7 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst, if (inst.op == M68K_BCC && inst.extra.cond != COND_TRUE) { branch_f = after; branch_t = m68k_branch_target(&inst, context->dregs, context->aregs); - insert_breakpoint(context, branch_t, (uint8_t *)debugger); + insert_breakpoint(context, branch_t, debugger); } else if(inst.op == M68K_DBCC) { if ( inst.extra.cond == COND_FALSE) { if (context->dregs[inst.dst.params.regs.pri] & 0xFFFF) { @@ -691,13 +691,13 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst, } else { branch_t = after; branch_f = m68k_branch_target(&inst, context->dregs, context->aregs); - insert_breakpoint(context, branch_f, (uint8_t *)debugger); + insert_breakpoint(context, branch_f, debugger); } } else { after = m68k_branch_target(&inst, context->dregs, context->aregs); } } - insert_breakpoint(context, after, (uint8_t *)debugger); + insert_breakpoint(context, after, debugger); return 0; case 'o': if (inst.op == M68K_RTS) { @@ -711,7 +711,7 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst, branch_t = 0; } else { branch_f = after; - insert_breakpoint(context, branch_t, (uint8_t *)debugger); + insert_breakpoint(context, branch_t, debugger); } } else if(inst.op == M68K_DBCC) { uint32_t target = m68k_branch_target(&inst, context->dregs, context->aregs) & 0xFFFFFF; @@ -721,14 +721,14 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst, } else { branch_f = target; branch_t = after; - insert_breakpoint(context, branch_f, (uint8_t *)debugger); + insert_breakpoint(context, branch_f, debugger); } } } else { after = m68k_branch_target(&inst, context->dregs, context->aregs) & 0xFFFFFF; } } - insert_breakpoint(context, after, (uint8_t *)debugger); + insert_breakpoint(context, after, debugger); return 0; case 's': if (inst.op == M68K_RTS) { @@ -739,16 +739,16 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst, if (inst.op == M68K_BCC && inst.extra.cond != COND_TRUE) { branch_f = after; branch_t = m68k_branch_target(&inst, context->dregs, context->aregs) & 0xFFFFFF; - insert_breakpoint(context, branch_t, (uint8_t *)debugger); + insert_breakpoint(context, branch_t, debugger); } else if(inst.op == M68K_DBCC && inst.extra.cond != COND_FALSE) { branch_t = after; branch_f = m68k_branch_target(&inst, context->dregs, context->aregs) & 0xFFFFFF; - insert_breakpoint(context, branch_f, (uint8_t *)debugger); + insert_breakpoint(context, branch_f, debugger); } else { after = m68k_branch_target(&inst, context->dregs, context->aregs) & 0xFFFFFF; } } - insert_breakpoint(context, after, (uint8_t *)debugger); + insert_breakpoint(context, after, debugger); return 0; case 'v': { genesis_context * gen = context->system; |