further progress on targets view replacement; split collection views into several types

This commit is contained in:
Ryan Fleury
2024-09-23 16:06:01 -07:00
parent bfe6f655be
commit 508d11c8d8
7 changed files with 476 additions and 334 deletions
+32
View File
@@ -675,6 +675,38 @@ str8_lit_comp("5"),
str8_lit_comp("c"),
};
String8 rd_collection_name_table[12] =
{
str8_lit_comp("watches"),
str8_lit_comp("targets"),
str8_lit_comp("breakpoints"),
str8_lit_comp("watch_pins"),
str8_lit_comp("threads"),
str8_lit_comp("modules"),
str8_lit_comp("locals"),
str8_lit_comp("registers"),
str8_lit_comp("globals"),
str8_lit_comp("thread_locals"),
str8_lit_comp("types"),
str8_lit_comp("procedures"),
};
EV_ViewRuleBlockProdHookFunctionType * rd_collection_block_prod_hook_function_table[12] =
{
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(watches),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(targets),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(breakpoints),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(watch_pins),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(threads),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(modules),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(locals),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(registers),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(globals),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(thread_locals),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(types),
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_NAME(procedures),
};
RD_ViewRuleInfo rd_view_rule_kind_info_table[34] =
{
{{0}, {0}, {0}, {0}, RD_IconKind_Null, 0, 0, RD_VIEW_RULE_UI_FUNCTION_NAME(null)},
+14
View File
@@ -648,6 +648,18 @@ RD_ViewRuleUIFunctionType *ui;
.params_tree = rd_regs()->params_tree,\
.os_event = rd_regs()->os_event,\
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(watches);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(targets);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(breakpoints);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(watch_pins);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(threads);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(modules);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(locals);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(registers);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(globals);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(thread_locals);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(types);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(procedures);
RD_VIEW_RULE_UI_FUNCTION_DEF(null);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(text);
EV_VIEW_RULE_BLOCK_PROD_FUNCTION_DEF(disasm);
@@ -704,6 +716,8 @@ extern RD_StringBindingPair rd_default_binding_table[110];
extern String8 rd_binding_version_remap_old_name_table[7];
extern String8 rd_binding_version_remap_new_name_table[7];
extern String8 rd_icon_kind_text_table[69];
extern String8 rd_collection_name_table[12];
extern EV_ViewRuleBlockProdHookFunctionType * rd_collection_block_prod_hook_function_table[12];
extern RD_ViewRuleInfo rd_view_rule_kind_info_table[34];
extern RD_IconKind rd_entity_kind_icon_kind_table[30];
extern String8 rd_theme_preset_display_string_table[9];