Skip to content

Commit

Permalink
Working handle_call
Browse files Browse the repository at this point in the history
  • Loading branch information
netanel committed Nov 16, 2023
1 parent 004b846 commit f75cf56
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 351 deletions.
185 changes: 0 additions & 185 deletions src/protos/gpt_construct_rpc.proto

This file was deleted.

32 changes: 24 additions & 8 deletions src/protos/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ message Command {
CmdPeek peek = 7;
CmdPoke poke = 8;
CmdListDir listdir = 9;
CmdShowObject showobject = 10;
CmdShowClass showclass = 11;
CmdShowObject show_object = 10;
CmdShowClass show_class = 11;
CmdDummyBlock dummy_block = 12;
CmdClose close = 13;
CmdGetClassList class_list = 14;
Expand Down Expand Up @@ -102,8 +102,11 @@ message CmdDlsym {
}

message Argument {
uint64 type = 1;
uint64 value=2;
oneof type{
uint64 v_int = 1;
double v_double = 2;
string v_str = 3;
}
}

message CmdCall {
Expand All @@ -113,8 +116,23 @@ message CmdCall {
}

message ReturnRegistersArm {
repeated uint64 x = 1;
repeated uint64 d = 2;
uint64 x0 = 1;
uint64 x1 = 2;
uint64 x2 = 3;
uint64 x3 = 4;
uint64 x4 = 5;
uint64 x5 = 6;
uint64 x6 = 7;
uint64 x7 = 8;

double d0 = 9;
double d1 = 10;
double d2 = 11;
double d3 = 12;
double d4 = 13;
double d5 = 14;
double d6 = 15;
double d7 = 16;
}

message CmdPeek {
Expand All @@ -125,7 +143,6 @@ message ResponsePeek{
bytes data =1;
}


message CmdPoke {
uint64 address = 1;
bytes data = 3;
Expand Down Expand Up @@ -172,7 +189,6 @@ message CmdShowClass {
uint64 address = 1;
}
// Responses

message ResponseCmdExec {
uint32 pid = 1;
}
Expand Down
Loading

0 comments on commit f75cf56

Please sign in to comment.