-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagc_gdbmi.h
50 lines (41 loc) · 1.15 KB
/
agc_gdbmi.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
#ifndef AGC_GDBMI_H
#define AGC_GDBMI_H
#include "agc_debug.h"
#define GDBMI_MAX_CUSTOM_CMDS 32
#define GDBMI_MAX_CUSTOM_ARGS 10
/**
* typde definiyion to tell the simulator what action to take
*/
typedef enum
{
GdbmiCmdUnhandled,
GdbmiCmdError,
GdbmiCmdDone,
GdbmiCmdNext,
GdbmiCmdStep,
GdbmiCmdContinue,
GdbmiCmdRun,
GdbmiCmdQuit = 0xfe,
} GdbmiResult;
typedef struct
{
char* Command;
char* Arguments[GDBMI_MAX_CUSTOM_ARGS];
} CustomCommand_t;
typedef struct
{
char* Command;
GdbmiResult (*Handler)(int);
} GdbmiCommands_t;
extern void GdbmiDisplayBreakpointForLine(SymbolLine_t* Line,int BreakpointId );
extern GdbmiResult GdbmiInterpreter(agc_t* , char*, char* );
extern void GdbmiPrintFullNameContents(SymbolLine_t *Line);
extern GdbmiResult GdbmiHandleDelete(int k);
void GdbmiPrintFullNameFrame(SymbolLine_t *Line);
void GdbmiPrintSourceFrame(SymbolLine_t *Line);
//#define GDBMI_FUNC(f) GdbmiResult gdbmi ## f(agc_t *State , char* s, char* sraw)
//#define GDBMI_CALL(f,i) if(gdbmi_status == gdbmiCmdUnhandled)gdbmi_status = gdbmi ## f (State,s+i,sraw+i)
extern int gdbmi_sigint;
extern char* SymbolFile;
extern char* SourcePathName;
#endif