Skip to content

Commit

Permalink
big batch of work in moving from entity -> cfg; work on new universal…
Browse files Browse the repository at this point in the history
… lister system for cfg right-click menus, system processes, file system, autocompletion, procedures, etc.
  • Loading branch information
ryanfleury committed Jan 22, 2025
1 parent 5cbef8f commit 84fd1e9
Show file tree
Hide file tree
Showing 11 changed files with 1,127 additions and 877 deletions.
3 changes: 2 additions & 1 deletion project.4coder
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ commands =
//- rjf: fkey command slots (change locally but do not commit)
.f1 = { .win = "build raddbg telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.f2 = { .win = "build rdi_from_pdb", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.f3 = { .win = "pushd build && raddbg.exe --user:local_dev.raddbg_user --project:local_dev.raddbg_project --xuto_run && popd",.linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.f3 = { .win = "raddbg_stable --ipc run", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
// .f3 = { .win = "pushd build && raddbg.exe --user:local_dev.raddbg_user --project:local_dev.raddbg_project --xuto_run && popd",.linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
// .f1 = { .win = "build textperf release telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
// .f3 = { .win = "pushd build && textperf.exe --capture && popd",.linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },

Expand Down
74 changes: 37 additions & 37 deletions src/dbg_engine/dbg_engine.mdesk

Large diffs are not rendered by default.

29 changes: 0 additions & 29 deletions src/dbg_engine/dbg_engine_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1872,35 +1872,6 @@ d_tick(Arena *arena, D_TargetArray *targets, D_BreakpointArray *breakpoints, D_P
}
}

//////////////////////////////
//- rjf: sync with di parsers
//
ProfScope("sync with di parsers")
{
DI_EventList events = di_p2u_pop_events(scratch.arena, 0);
for(DI_EventNode *n = events.first; n != 0; n = n->next)
{
DI_Event *event = &n->v;
switch(event->kind)
{
default:{}break;
case DI_EventKind_ConversionStarted:
{
RD_Entity *task = rd_entity_alloc(rd_entity_root(), RD_EntityKind_ConversionTask);
rd_entity_equip_name(task, event->string);
}break;
case DI_EventKind_ConversionEnded:
{
RD_Entity *task = rd_entity_from_name_and_kind(event->string, RD_EntityKind_ConversionTask);
if(!rd_entity_is_nil(task))
{
rd_entity_mark_for_deletion(task);
}
}break;
}
}
}

//////////////////////////////
//- rjf: process top-level commands
//
Expand Down
477 changes: 260 additions & 217 deletions src/raddbg/generated/raddbg.meta.c

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion src/raddbg/generated/raddbg.meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ RD_CmdKind_Open,
RD_CmdKind_Switch,
RD_CmdKind_SwitchToPartnerFile,
RD_CmdKind_RecordFileInProject,
RD_CmdKind_ShowFileInExplorer,
RD_CmdKind_GoToDisassembly,
RD_CmdKind_GoToSource,
RD_CmdKind_SetFileReplacementPath,
Expand Down Expand Up @@ -267,7 +268,6 @@ RD_CmdKind_EnableBreakpoint,
RD_CmdKind_DisableBreakpoint,
RD_CmdKind_AddWatchPin,
RD_CmdKind_ToggleWatchPin,
RD_CmdKind_RunToCursor,
RD_CmdKind_SetNextStatement,
RD_CmdKind_AddTarget,
RD_CmdKind_SelectTarget,
Expand Down Expand Up @@ -546,6 +546,16 @@ RD_SettingCode_HintCodeText,
RD_SettingCode_COUNT,
} RD_SettingCode;

typedef struct RD_VocabularyInfo RD_VocabularyInfo;
struct RD_VocabularyInfo
{
String8 code_name;
String8 code_name_plural;
String8 display_name;
String8 display_name_plural;
RD_IconKind icon_kind;
};

typedef struct RD_Regs RD_Regs;
struct RD_Regs
{
Expand Down Expand Up @@ -606,6 +616,7 @@ struct RD_CmdKindInfo
String8 string;
String8 description;
String8 search_tags;
String8 ctx_filter;
String8 display_name;
RD_IconKind icon_kind;
RD_CmdKindFlags flags;
Expand Down Expand Up @@ -780,6 +791,7 @@ extern String8 rd_cfg_src_string_table[4];
extern RD_CmdKind rd_cfg_src_load_cmd_kind_table[4];
extern RD_CmdKind rd_cfg_src_write_cmd_kind_table[4];
extern RD_CmdKind rd_cfg_src_apply_cmd_kind_table[4];
extern RD_VocabularyInfo rd_vocabulary_info_table[39];
extern String8 d_entity_kind_display_string_table[27];
extern String8 d_entity_kind_name_lower_table[27];
extern String8 d_entity_kind_name_lower_plural_table[27];
Expand Down
514 changes: 289 additions & 225 deletions src/raddbg/raddbg.mdesk

Large diffs are not rendered by default.

Loading

0 comments on commit 84fd1e9

Please sign in to comment.