forked from MEGA65/m65dbg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.h
67 lines (59 loc) · 1.37 KB
/
commands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include <stdbool.h>
void listSearch(void);
void cmdHelp(void);
void cmdDump(void);
void cmdMDump(void);
void cmdDisassemble(void);
void cmdStep(void);
void cmdNext(void);
void cmdFinish(void);
void cmdPrintByte(void);
void cmdPrintWord(void);
void cmdPrintDWord(void);
void cmdPrintString(void);
void cmdClearScreen(void);
void cmdAutoClearScreen(void);
void cmdSetBreakpoint(void);
void cmdWatchByte(void);
void cmdWatchByte(void);
void cmdWatchWord(void);
void cmdWatchDWord(void);
void cmdWatchString(void);
void cmdWatches(void);
void cmdDeleteWatch(void);
void cmdAutoWatch(void);
void cmdSymbolValue(void);
void cmdSave(void);
void cmdLoad(void);
void cmdBackTrace(void);
void cmdUpFrame(void);
void cmdDownFrame(void);
#define BUFSIZE 4096
extern char outbuf[];
extern char inbuf[];
extern bool ctrlcflag;
typedef struct
{
char* name;
void (*func)(void);
char* params;
char* help;
} type_command_details;
typedef struct tse
{
char* symbol;
int addr; // integer value of symbol
char* sval; // string value of symbol
struct tse* next;
} type_symmap_entry;
typedef enum { TYPE_BYTE, TYPE_WORD, TYPE_DWORD, TYPE_STRING } type_watch;
extern char* type_names[];
typedef struct we
{
type_watch type;
char* name;
struct we* next;
} type_watch_entry;
extern type_command_details command_details[];
extern type_symmap_entry* lstSymMap;
extern type_watch_entry* lstWatches;