Mercurial > repos > blastem
diff 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 |
line wrap: on
line diff
--- a/debug.h Sat Feb 12 14:50:59 2022 -0800 +++ b/debug.h Sat Feb 12 15:20:43 2022 -0800 @@ -23,6 +23,17 @@ uint32_t index; } bp_def; +typedef struct { + void *cpu_context; + bp_def *breakpoints; + disp_def *displays; + uint32_t bp_index; + uint32_t disp_index; + uint32_t branch_t; + uint32_t branch_f; +} debug_root; + +debug_root *find_root(void *cpu); bp_def ** find_breakpoint(bp_def ** cur, uint32_t address); bp_def ** find_breakpoint_idx(bp_def ** cur, uint32_t index); void add_display(disp_def ** head, uint32_t *index, char format_char, char * param);