explicitly show error if decoding line machine code or line info fails

This commit is contained in:
Ryan Fleury
2024-04-10 13:36:52 -07:00
parent 56bc399fd5
commit b7a14aa41c
+8 -1
View File
@@ -7378,10 +7378,17 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
{
df_ctrl_run(DF_RunKind_Step, thread, 0, &traps);
}
if(good && traps.count == 0)
if(good && traps.count == 0 && core_cmd_kind == DF_CoreCmdKind_StepIntoInst)
{
df_ctrl_run(DF_RunKind_SingleStep, thread, 0, &traps);
}
if(good && traps.count == 0 && core_cmd_kind != DF_CoreCmdKind_StepIntoInst)
{
DF_CmdParams p = params;
p.string = str8_lit("Could not read the instruction pointer's current line information.");
df_cmd_params_mark_slot(&p, DF_CmdParamSlot_String);
df_cmd_list_push(arena, cmds, &p, df_cmd_spec_from_core_cmd_kind(DF_CoreCmdKind_Error));
}
}
}break;
case DF_CoreCmdKind_Halt: