mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-19 04:30:10 -08:00
dbg_server, remote controller connections checkpoint
This commit is contained in:
1 parent
98467d0868
commit
4f5e795ae9
20 files changed
+338
-110
No files matched your search
@@ -58,6 +58,10 @@ D_CmdTable: // | | |
|
||||
|
||||
//- rjf: crash dump opening
|
||||
{OpenCrashDump 1 1 `folder:\\"$input\\"` FilePath 0 0 0 0 0 1 1 FileOutline "open_crash_dump" "Open Crash Dump" "Opens a crash dump file and recreates debuggee state at the time of the crash." "" "" }
|
||||
|
||||
//- rjf: remote debugger connecting
|
||||
{OpenRemoteDebugger 1 1 "" String 0 0 0 0 0 1 1 Machine "open_remote_debugger" "Open Remote Debugger" "Opens a remote debugger by IP address." "" "" }
|
||||
{CloseRemoteDebugger 1 1 "query:machines" CtrlEntity 0 0 0 0 0 1 1 Machine "close_remote_debugger" "Close Remote Debugger" "Closes a remote debugger." "" "" }
|
||||
}
|
||||
|
||||
@enum D_CmdKind:
|
||||
|
||||
@@ -2527,6 +2527,10 @@ d_ctrl_thread__entry_point(void *p)
|
||||
case D_MsgKind_Null:
|
||||
case D_MsgKind_COUNT:{}break;
|
||||
|
||||
//- rjf: remote debuggers
|
||||
case D_MsgKind_OpenRemoteDebugger:{}break;
|
||||
case D_MsgKind_CloseRemoteDebugger:{}break;
|
||||
|
||||
//- rjf: target operations
|
||||
case D_MsgKind_Launch: {d_ctrl_thread__launch (ctrl_ctx, msg);}break;
|
||||
case D_MsgKind_Attach: {d_ctrl_thread__attach (ctrl_ctx, msg);}break;
|
||||
|
||||
@@ -2191,6 +2191,24 @@ d_tick(Arena *arena, D_TargetArray *targets, D_BreakpointArray *breakpoints, D_P
|
||||
MemoryCopyArray(msg->exception_code_filters, exception_code_filters);
|
||||
msg->auto_download_debug_info = auto_download_debug_info;
|
||||
}break;
|
||||
|
||||
//- rjf: opening/closing remote debuggers
|
||||
case D_CmdKind_OpenRemoteDebugger:
|
||||
{
|
||||
D_Msg *msg = d_msg_list_push(scratch.arena, &ctrl_msgs);
|
||||
msg->kind = D_MsgKind_OpenRemoteDebugger;
|
||||
msg->path = str8_copy(scratch.arena, params->string);
|
||||
MemoryCopyArray(msg->exception_code_filters, exception_code_filters);
|
||||
msg->auto_download_debug_info = auto_download_debug_info;
|
||||
}break;
|
||||
case D_CmdKind_CloseRemoteDebugger:
|
||||
{
|
||||
D_Msg *msg = d_msg_list_push(scratch.arena, &ctrl_msgs);
|
||||
msg->kind = D_MsgKind_CloseRemoteDebugger;
|
||||
msg->entity = params->entity;
|
||||
MemoryCopyArray(msg->exception_code_filters, exception_code_filters);
|
||||
msg->auto_download_debug_info = auto_download_debug_info;
|
||||
}break;
|
||||
}
|
||||
|
||||
// rjf: do run if needed
|
||||
|
||||
@@ -160,6 +160,8 @@ struct D_RunLocalsCache
|
||||
typedef enum D_MsgKind
|
||||
{
|
||||
D_MsgKind_Null,
|
||||
D_MsgKind_OpenRemoteDebugger,
|
||||
D_MsgKind_CloseRemoteDebugger,
|
||||
D_MsgKind_Launch,
|
||||
D_MsgKind_Attach,
|
||||
D_MsgKind_OpenCrashDump,
|
||||
|
||||
@@ -45,6 +45,8 @@ D_CmdKind_SetEntityName,
|
||||
D_CmdKind_DownloadModuleDebugInfo,
|
||||
D_CmdKind_Attach,
|
||||
D_CmdKind_OpenCrashDump,
|
||||
D_CmdKind_OpenRemoteDebugger,
|
||||
D_CmdKind_CloseRemoteDebugger,
|
||||
D_CmdKind_COUNT,
|
||||
} D_CmdKind;
|
||||
|
||||
|
||||
Reference in new issue
Block a user