radbin: absolutify relative external-file-paths (debug link, pdb-in-exe), to avoid clashing with working-directory files of the same name

This commit is contained in:
Ryan Fleury
2026-06-02 14:41:43 -07:00
parent e958814b07
commit fd1ee1c265
2 changed files with 20 additions and 2 deletions
+14 -2
View File
@@ -322,7 +322,13 @@ rb_thread_entry_point(void *p)
if(n->v.path.size != 0) if(n->v.path.size != 0)
{ {
log_infof("Found reference to separate debug info file in %S (%S) at %S\n", file_path, rb_file_format_display_name_table[file_format], n->v.path); log_infof("Found reference to separate debug info file in %S (%S) at %S\n", file_path, rb_file_format_display_name_table[file_format], n->v.path);
str8_list_push(arena, &input_file_path_tasks, n->v.path); String8 ext_path_absolute = n->v.path;
PathStyle ext_path_style = path_style_from_str8(ext_path_absolute);
if(ext_path_style == PathStyle_Relative)
{
ext_path_absolute = path_absolute_dst_from_relative_dst_src(arena, ext_path_absolute, str8_chop_last_slash(input_file_path));
}
str8_list_push(arena, &input_file_path_tasks, ext_path_absolute);
} }
} }
scratch_end(scratch); scratch_end(scratch);
@@ -340,7 +346,13 @@ rb_thread_entry_point(void *p)
if(debug_link.path.size != 0) if(debug_link.path.size != 0)
{ {
log_infof("Found reference to separate debug info file in %S (%S) at %S\n", n->string, rb_file_format_display_name_table[file_format], debug_link.path); log_infof("Found reference to separate debug info file in %S (%S) at %S\n", n->string, rb_file_format_display_name_table[file_format], debug_link.path);
str8_list_push(arena, &input_file_path_tasks, debug_link.path); String8 ext_path_absolute = debug_link.path;
PathStyle ext_path_style = path_style_from_str8(ext_path_absolute);
if(ext_path_style == PathStyle_Relative)
{
ext_path_absolute = path_absolute_dst_from_relative_dst_src(arena, ext_path_absolute, str8_chop_last_slash(input_file_path));
}
str8_list_push(arena, &input_file_path_tasks, ext_path_absolute);
} }
scratch_end(scratch); scratch_end(scratch);
} }
+6
View File
@@ -6181,6 +6181,12 @@ rd_window_frame(void)
{ {
B32 build_hover_eval = (hover_eval_is_open && !rd_drag_is_active()); B32 build_hover_eval = (hover_eval_is_open && !rd_drag_is_active());
// rjf: reset hover eval timer if it's "open" but we aren't going to build it
if(!build_hover_eval && hover_eval_is_open)
{
ws->hover_eval_firstt_us = rd_state->time_in_us;
}
// rjf: disable hover eval if hovered view is actively scrolling // rjf: disable hover eval if hovered view is actively scrolling
if(hover_eval_is_open) if(hover_eval_is_open)
{ {