-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdbg.proto
44 lines (38 loc) · 1.02 KB
/
dbg.proto
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
syntax = "proto2";
package dbg;
message SysInfo {
required int64 tick_count = 1;
}
message Request {
enum Type {
SYSINFO = 0; // Note: Keep table in sync with dbgd.c!
REBOOT = 1;
MALLOC = 2;
FREE = 3;
MEM_READ = 4;
MEM_WRITE = 5;
DEBUG_PRINT = 6;
SHOW_DEBUG_SCREEN = 7;
SHOW_FRONT_SCREEN = 8;
CALL = 9;
COUNT = 10;
}
required Type type = 1; //
optional string msg = 2; // DEBUG_PRINT
optional uint32 address = 3; // FREE, MEM_READ, MEM_WRITE, CALL
optional uint32 size = 4; // MALLOC, MEM_READ
optional bytes data = 5; // MEM_WRITE, CALL
}
message Response {
enum Type {
OK = 0;
ERROR_UNSUPPORTED = 1;
ERROR_INCOMPLETE_REQUEST = 2;
}
required Type type = 1; //
optional string msg = 2; //
optional SysInfo info = 3; // SYSINFO
optional uint32 address = 4; // MALLOC
optional uint32 size = 5; //
optional bytes data = 6; // MEM_READ, CALL
}