summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-05-14 00:04:22 -0700
committerMichael Pavone <pavone@retrodev.com>2015-05-14 00:04:22 -0700
commitb88dc02ba056c2b5891b1bb062a2ad44df5df544 (patch)
treee4f449b51b61ad539556e32052594e1ec2556273 /debug.c
parent9ad6463d0b731c4afda4fceb9a9683e2f65e14f5 (diff)
Sync machine state before entering debugger
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index fa0e26e..11ec9ad 100644
--- a/debug.c
+++ b/debug.c
@@ -471,6 +471,7 @@ m68k_context * debugger(m68k_context * context, uint32_t address)
static uint32_t branch_t;
static uint32_t branch_f;
m68kinst inst;
+ sync_components(context, 0);
//probably not necessary, but let's play it safe
address &= 0xFFFFFF;
if (address == branch_t) {