mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-20 13:10:07 -08:00
debug server checkpoint
This commit is contained in:
1 parent
b6d8c3fd9e
commit
c269823e15
12 files changed
+94
-220
No files matched your search
+15
-22
@@ -60,13 +60,14 @@ struct DS_Msg
|
||||
{
|
||||
DS_MsgKind kind;
|
||||
DS_MsgFlags flags;
|
||||
U64 id;
|
||||
U64 msg_id;
|
||||
|
||||
//- rjf: general parameters
|
||||
Rng1U64 vaddr_range;
|
||||
AccessFlags access_flags;
|
||||
DMN_Handle entity;
|
||||
U64 pid;
|
||||
U64 code;
|
||||
|
||||
//- rjf: process launching parameters
|
||||
String8List command_line;
|
||||
@@ -78,41 +79,33 @@ struct DS_Msg
|
||||
DMN_HandleArray run_entities;
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Server Instance
|
||||
|
||||
typedef enum DS_InstKind
|
||||
{
|
||||
DS_InstKind_Host,
|
||||
DS_InstKind_Remote,
|
||||
}
|
||||
DS_InstKind;
|
||||
|
||||
typedef struct DS_Inst DS_Inst;
|
||||
struct DS_Inst
|
||||
{
|
||||
DS_InstKind kind;
|
||||
U64 u64[1];
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Responses (Server -> Client responses to messages)
|
||||
|
||||
typedef struct DS_Response DS_Response;
|
||||
struct DS_Response
|
||||
{
|
||||
U64 id;
|
||||
DS_Inst inst;
|
||||
U64 msg_id;
|
||||
String8 data;
|
||||
DMN_Handle entity;
|
||||
U64 pid;
|
||||
B32 good;
|
||||
DMN_EventList events;
|
||||
};
|
||||
|
||||
typedef struct DS_ResponseNode DS_ResponseNode;
|
||||
struct DS_ResponseNode
|
||||
{
|
||||
DS_ResponseNode *next;
|
||||
DS_Response v;
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Message Parsing
|
||||
//~ rjf: Message/Response Parsing
|
||||
|
||||
internal DS_Msg ds_msg_from_serialized(Arena *arena, String8 data);
|
||||
internal String8 ds_serialized_from_msg(Arena *arena, DS_Msg msg);
|
||||
internal String8 ds_serialized_from_msg(Arena *arena, DS_Msg *msg);
|
||||
internal DS_Response ds_response_from_serialized(Arena *arena, String8 data);
|
||||
internal String8 ds_serialized_from_response(Arena *arena, DS_Response *response);
|
||||
|
||||
#endif // DBG_SERVER_H
|
||||
Reference in new issue
Block a user