further progress on cmds -> msgs in debug frontend

This commit is contained in:
Ryan Fleury
2024-08-31 09:02:42 -07:00
parent 2696c96f75
commit 45d3702c5b
6 changed files with 593 additions and 155 deletions
+78 -3
View File
@@ -40,7 +40,7 @@ String8 d_msg_kind_name_lower_table[71] =
{
str8_lit_comp("null"),
str8_lit_comp("launch_and_run"),
str8_lit_comp("launch_and_init"),
str8_lit_comp("launch_and_step_into"),
str8_lit_comp("kill"),
str8_lit_comp("kill_all"),
str8_lit_comp("attach"),
@@ -72,8 +72,83 @@ str8_lit_comp("freeze_machine"),
str8_lit_comp("thaw_machine"),
str8_lit_comp("freeze_local_machine"),
str8_lit_comp("thaw_local_machine"),
str8_lit_comp("set_file_override_link_src"),
str8_lit_comp("set_file_override_link_dst"),
str8_lit_comp("set_path_map_src"),
str8_lit_comp("set_path_map_dst"),
str8_lit_comp("set_file_replacement_path"),
str8_lit_comp("set_auto_view_rule_type"),
str8_lit_comp("set_auto_view_rule_view_rule"),
str8_lit_comp("enable_entity"),
str8_lit_comp("enable_breakpoint"),
str8_lit_comp("enable_target"),
str8_lit_comp("disable_entity"),
str8_lit_comp("disable_breakpoint"),
str8_lit_comp("disable_target"),
str8_lit_comp("freeze_entity"),
str8_lit_comp("thaw_entity"),
str8_lit_comp("remove_entity"),
str8_lit_comp("remove_breakpoint"),
str8_lit_comp("remove_target"),
str8_lit_comp("name_entity"),
str8_lit_comp("duplicate_entity"),
str8_lit_comp("relocate_entity"),
str8_lit_comp("add_breakpoint"),
str8_lit_comp("toggle_breakpoint"),
str8_lit_comp("add_address_breakpoint"),
str8_lit_comp("add_function_breakpoint"),
str8_lit_comp("add_watch_pin"),
str8_lit_comp("toggle_watch_pin"),
str8_lit_comp("toggle_watch_expression"),
str8_lit_comp("toggle_breakpoint_at_cursor"),
str8_lit_comp("toggle_watch_pin_at_cursor"),
str8_lit_comp("toggle_watch_expression_at_cursor"),
str8_lit_comp("go_to_name_at_cursor"),
str8_lit_comp("run_to_cursor"),
str8_lit_comp("set_next_statement"),
str8_lit_comp("add_target"),
str8_lit_comp("select_target"),
str8_lit_comp("retry_ended_process"),
str8_lit_comp("register_as_jit_debugger"),
str8_lit_comp("log_marker"),
};
String8 d_msg_kind_name_display_table[71] =
{
str8_lit_comp("null"),
str8_lit_comp("launch_and_run"),
str8_lit_comp("launch_and_step_into"),
str8_lit_comp("kill"),
str8_lit_comp("kill_all"),
str8_lit_comp("attach"),
str8_lit_comp("detach"),
str8_lit_comp("continue"),
str8_lit_comp("step_into_inst"),
str8_lit_comp("step_over_inst"),
str8_lit_comp("step_into_line"),
str8_lit_comp("step_over_line"),
str8_lit_comp("step_out"),
str8_lit_comp("halt"),
str8_lit_comp("soft_halt_refresh"),
str8_lit_comp("set_thread_ip"),
str8_lit_comp("run_to_line"),
str8_lit_comp("run_to_address"),
str8_lit_comp("run"),
str8_lit_comp("restart"),
str8_lit_comp("step_into"),
str8_lit_comp("step_over"),
str8_lit_comp("select_thread"),
str8_lit_comp("select_unwind"),
str8_lit_comp("up_one_frame"),
str8_lit_comp("down_one_frame"),
str8_lit_comp("freeze_thread"),
str8_lit_comp("thaw_thread"),
str8_lit_comp("freeze_process"),
str8_lit_comp("thaw_process"),
str8_lit_comp("freeze_machine"),
str8_lit_comp("thaw_machine"),
str8_lit_comp("freeze_local_machine"),
str8_lit_comp("thaw_local_machine"),
str8_lit_comp("set_path_map_src"),
str8_lit_comp("set_path_map_dst"),
str8_lit_comp("set_file_replacement_path"),
str8_lit_comp("set_auto_view_rule_type"),
str8_lit_comp("set_auto_view_rule_view_rule"),
+4 -3
View File
@@ -42,7 +42,7 @@ typedef enum D_MsgKind
{
D_MsgKind_Null,
D_MsgKind_LaunchAndRun,
D_MsgKind_LaunchAndInit,
D_MsgKind_LaunchAndStepInto,
D_MsgKind_Kill,
D_MsgKind_KillAll,
D_MsgKind_Attach,
@@ -74,8 +74,8 @@ D_MsgKind_FreezeMachine,
D_MsgKind_ThawMachine,
D_MsgKind_FreezeLocalMachine,
D_MsgKind_ThawLocalMachine,
D_MsgKind_SetFileOverrideLinkSrc,
D_MsgKind_SetFileOverrideLinkDst,
D_MsgKind_SetPathMapSrc,
D_MsgKind_SetPathMapDst,
D_MsgKind_SetFileReplacementPath,
D_MsgKind_SetAutoViewRuleType,
D_MsgKind_SetAutoViewRuleViewRule,
@@ -572,6 +572,7 @@ struct {B32 *value_ptr; String8 name;} DEV_toggle_table[] =
C_LINKAGE_BEGIN
extern Rng1U64 d_reg_slot_range_table[28];
extern String8 d_msg_kind_name_lower_table[71];
extern String8 d_msg_kind_name_display_table[71];
extern Rng1U64 d_cmd_param_slot_range_table[23];
extern String8 d_entity_kind_display_string_table[31];
extern String8 d_entity_kind_name_lower_table[31];