diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-07-26 01:11:04 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-07-26 01:11:04 -0700 |
commit | bee8b42029900ca034675c54d98813a61ca4407a (patch) | |
tree | ee5d02129ed6f07607bb262b3960e99f3bc379e0 /debug.c | |
parent | 25fc1e88deea8253d9d4b8084485e176eb69abd0 (diff) |
Spawn a terminal for the debugger when needed if we are not already attached to one
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -8,6 +8,7 @@ #endif #include "render.h" #include "util.h" +#include "terminal.h" static bp_def * breakpoints = NULL; static bp_def * zbreakpoints = NULL; @@ -287,6 +288,7 @@ z80_context * zdebugger(z80_context * context, uint16_t address) static uint16_t branch_t; static uint16_t branch_f; z80inst inst; + init_terminal(); //Check if this is a user set breakpoint, or just a temporary one bp_def ** this_bp = find_breakpoint(&zbreakpoints, address); if (*this_bp) { @@ -473,6 +475,9 @@ m68k_context * debugger(m68k_context * context, uint32_t address) static uint32_t branch_t; static uint32_t branch_f; m68kinst inst; + + init_terminal(); + sync_components(context, 0); //probably not necessary, but let's play it safe address &= 0xFFFFFF; |