Mercurial > repos > blastem
diff debug.c @ 794:792be135d3af
Spawn a terminal for the debugger when needed if we are not already attached to one
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Jul 2015 01:11:04 -0700 |
parents | 724bbec47f86 |
children | cc05444a4a4e |
line wrap: on
line diff
--- a/debug.c Sun Jul 26 01:09:05 2015 -0700 +++ b/debug.c Sun Jul 26 01:11:04 2015 -0700 @@ -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 @@ 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 @@ 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;