comparison debug.c @ 707:8aa9aacefe12

Sync machine state before entering debugger
author Michael Pavone <pavone@retrodev.com>
date Thu, 14 May 2015 00:04:22 -0700
parents f822d9216968
children 7178d750efbd
comparison
equal deleted inserted replaced
706:0a6dea8c8083 707:8aa9aacefe12
469 static char last_cmd[1024]; 469 static char last_cmd[1024];
470 char input_buf[1024]; 470 char input_buf[1024];
471 static uint32_t branch_t; 471 static uint32_t branch_t;
472 static uint32_t branch_f; 472 static uint32_t branch_f;
473 m68kinst inst; 473 m68kinst inst;
474 sync_components(context, 0);
474 //probably not necessary, but let's play it safe 475 //probably not necessary, but let's play it safe
475 address &= 0xFFFFFF; 476 address &= 0xFFFFFF;
476 if (address == branch_t) { 477 if (address == branch_t) {
477 bp_def ** f_bp = find_breakpoint(&breakpoints, branch_f); 478 bp_def ** f_bp = find_breakpoint(&breakpoints, branch_f);
478 if (!*f_bp) { 479 if (!*f_bp) {