comparison debug.h @ 2107:f80c6111e1ae

Move some debugger state to a per-CPU structure. Add m command for returning to main CPU from sub CPU
author Michael Pavone <pavone@retrodev.com>
date Sat, 12 Feb 2022 15:20:43 -0800
parents 5d028088e320
children 8c28c5466d70
comparison
equal deleted inserted replaced
2106:d2989e32c026 2107:f80c6111e1ae
21 char *commands; 21 char *commands;
22 uint32_t address; 22 uint32_t address;
23 uint32_t index; 23 uint32_t index;
24 } bp_def; 24 } bp_def;
25 25
26 typedef struct {
27 void *cpu_context;
28 bp_def *breakpoints;
29 disp_def *displays;
30 uint32_t bp_index;
31 uint32_t disp_index;
32 uint32_t branch_t;
33 uint32_t branch_f;
34 } debug_root;
35
36 debug_root *find_root(void *cpu);
26 bp_def ** find_breakpoint(bp_def ** cur, uint32_t address); 37 bp_def ** find_breakpoint(bp_def ** cur, uint32_t address);
27 bp_def ** find_breakpoint_idx(bp_def ** cur, uint32_t index); 38 bp_def ** find_breakpoint_idx(bp_def ** cur, uint32_t index);
28 void add_display(disp_def ** head, uint32_t *index, char format_char, char * param); 39 void add_display(disp_def ** head, uint32_t *index, char format_char, char * param);
29 void remove_display(disp_def ** head, uint32_t index); 40 void remove_display(disp_def ** head, uint32_t index);
30 void debugger(m68k_context * context, uint32_t address); 41 void debugger(m68k_context * context, uint32_t address);