Mercurial > repos > blastem
comparison debug.h @ 524:fb39534b6604
Move debugging code outside of main source file
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 11 Feb 2014 21:53:31 -0800 |
parents | |
children | 9b7fcf748be0 |
comparison
equal
deleted
inserted
replaced
523:450c7745379a | 524:fb39534b6604 |
---|---|
1 #ifndef DEBUG_H_ | |
2 #define DEBUG_H_ | |
3 | |
4 #include <stdint.h> | |
5 #include "m68k_to_x86.h" | |
6 | |
7 typedef struct disp_def { | |
8 struct disp_def * next; | |
9 char * param; | |
10 uint32_t index; | |
11 char format_char; | |
12 } disp_def; | |
13 | |
14 typedef struct bp_def { | |
15 struct bp_def * next; | |
16 uint32_t address; | |
17 uint32_t index; | |
18 } bp_def; | |
19 | |
20 bp_def ** find_breakpoint(bp_def ** cur, uint32_t address); | |
21 bp_def ** find_breakpoint_idx(bp_def ** cur, uint32_t index); | |
22 void add_display(disp_def ** head, uint32_t *index, char format_char, char * param); | |
23 void remove_display(disp_def ** head, uint32_t index); | |
24 m68k_context * debugger(m68k_context * context, uint32_t address); | |
25 | |
26 #endif //DEBUG_H_ |