mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-30 09:33:21 -08:00
switch to simplified debug engine command interface; rely on interact registers, rather than explicit pass-down, for contextually-obvious parameters
This commit is contained in:
1 parent
e3dc29d7ae
commit
269abf661f
8 files changed
+316
-592
No files matched your search
@@ -360,22 +360,18 @@ entry_point(CmdLine *cmd_line)
|
||||
String8 error = d_cmd_params_apply_spec_query(scratch.arena, ¶ms, cmd_spec, d_cmd_arg_part_from_string(msg));
|
||||
if(error.size == 0)
|
||||
{
|
||||
d_push_cmd(¶ms, cmd_spec);
|
||||
d_push_cmd(cmd_spec, ¶ms);
|
||||
df_gfx_request_frame();
|
||||
}
|
||||
else
|
||||
{
|
||||
D_CmdParams params = df_cmd_params_from_window(dst_window);
|
||||
params.string = error;
|
||||
d_push_cmd(¶ms, d_cmd_spec_from_kind(D_CmdKind_Error));
|
||||
d_error(error);
|
||||
df_gfx_request_frame();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
D_CmdParams params = df_cmd_params_from_window(dst_window);
|
||||
params.string = push_str8f(scratch.arena, "\"%S\" is not a command.", cmd_spec_string);
|
||||
d_push_cmd(¶ms, d_cmd_spec_from_kind(D_CmdKind_Error));
|
||||
d_errorf("\"%S\" is not a command.", cmd_spec_string);
|
||||
df_gfx_request_frame();
|
||||
}
|
||||
}
|
||||
@@ -391,25 +387,21 @@ entry_point(CmdLine *cmd_line)
|
||||
if(auto_run)
|
||||
{
|
||||
auto_run = 0;
|
||||
D_CmdParams params = df_cmd_params_from_gfx();
|
||||
d_push_cmd(¶ms, d_cmd_spec_from_kind(D_CmdKind_LaunchAndRun));
|
||||
d_cmd(D_CmdKind_LaunchAndRun);
|
||||
}
|
||||
|
||||
//- rjf: auto step
|
||||
if(auto_step)
|
||||
{
|
||||
auto_step = 0;
|
||||
D_CmdParams params = df_cmd_params_from_gfx();
|
||||
d_push_cmd(¶ms, d_cmd_spec_from_kind(D_CmdKind_StepInto));
|
||||
d_cmd(D_CmdKind_StepInto);
|
||||
}
|
||||
|
||||
//- rjf: jit attach
|
||||
if(jit_attach)
|
||||
{
|
||||
jit_attach = 0;
|
||||
D_CmdParams params = df_cmd_params_from_gfx();
|
||||
params.id = jit_pid;
|
||||
d_push_cmd(¶ms, d_cmd_spec_from_kind(D_CmdKind_Attach));
|
||||
d_cmd(D_CmdKind_Attach, .id = jit_pid);
|
||||
}
|
||||
|
||||
//- rjf: quit if no windows are left
|
||||
|
||||
Reference in new issue
Block a user