comparison debug.c @ 2180:b87658ba3b94

Fix bug in Z80 debugger for SMS mode post-refactor
author Michael Pavone <pavone@retrodev.com>
date Sat, 13 Aug 2022 19:39:42 -0700
parents 9a8dd4ba2753
children 0c723b8b637c
comparison
equal deleted inserted replaced
2179:9a8dd4ba2753 2180:b87658ba3b94
2624 static char last_cmd[1024]; 2624 static char last_cmd[1024];
2625 char input_buf[1024]; 2625 char input_buf[1024];
2626 z80inst inst; 2626 z80inst inst;
2627 genesis_context *system = context->system; 2627 genesis_context *system = context->system;
2628 init_terminal(); 2628 init_terminal();
2629 debug_root *root = find_root(context); 2629 debug_root *root = find_z80_root(context);
2630 if (!root) { 2630 if (!root) {
2631 return context; 2631 return context;
2632 } 2632 }
2633 //Check if this is a user set breakpoint, or just a temporary one 2633 //Check if this is a user set breakpoint, or just a temporary one
2634 bp_def ** this_bp = find_breakpoint(&root->breakpoints, address); 2634 bp_def ** this_bp = find_breakpoint(&root->breakpoints, address);