main debug.h
 1#ifndef DEBUG_H_
 2#define DEBUG_H_
 3
 4#include <stdint.h>
 5#include "m68k_core.h"
 6#include "z80_to_x86.h"
 7
 8typedef struct disp_def {
 9	struct disp_def * next;
10	char *            param;
11	uint32_t          index;
12	char              format_char;
13} disp_def;
14
15typedef struct bp_def {
16	struct bp_def *next;
17	char          *commands;
18	uint32_t      address;
19	uint32_t      index;
20} bp_def;
21
22bp_def ** find_breakpoint(bp_def ** cur, uint32_t address);
23bp_def ** find_breakpoint_idx(bp_def ** cur, uint32_t index);
24void add_display(disp_def ** head, uint32_t *index, char format_char, char * param);
25void remove_display(disp_def ** head, uint32_t index);
26void debugger(m68k_context * context, uint32_t address);
27z80_context * zdebugger(z80_context * context, uint16_t address);
28
29#endif //DEBUG_H_