mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-11 16:18:07 +00:00
be robust to missing symbol server support
This commit is contained in:
@@ -2675,6 +2675,7 @@ d_ctrl_thread__module_open(D_Handle process, D_Handle module, U64 base_vaddr, DM
|
|||||||
}
|
}
|
||||||
|
|
||||||
// rjf: push local symbol server cache's path
|
// rjf: push local symbol server cache's path
|
||||||
|
if(local_symbol_server_cache_path.size != 0)
|
||||||
{
|
{
|
||||||
str8_list_push(scratch.arena, &candidates, local_symbol_server_cache_path);
|
str8_list_push(scratch.arena, &candidates, local_symbol_server_cache_path);
|
||||||
}
|
}
|
||||||
@@ -2698,7 +2699,7 @@ d_ctrl_thread__module_open(D_Handle process, D_Handle module, U64 base_vaddr, DM
|
|||||||
// if it exists, we can just use it. if it doesn't, then we only want to pick it *if*
|
// if it exists, we can just use it. if it doesn't, then we only want to pick it *if*
|
||||||
// automatic downloads are enabled.
|
// automatic downloads are enabled.
|
||||||
//
|
//
|
||||||
if(initial_debug_info_path.size == 0 && d_ctrl_state->auto_download_debug_info)
|
if(initial_debug_info_path.size == 0 && d_ctrl_state->auto_download_debug_info && local_symbol_server_cache_path.size != 0)
|
||||||
{
|
{
|
||||||
initial_debug_info_path = str8_copy(arena, local_symbol_server_cache_path);
|
initial_debug_info_path = str8_copy(arena, local_symbol_server_cache_path);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -697,7 +697,7 @@ di_async_tick(void)
|
|||||||
if(!file_is_present)
|
if(!file_is_present)
|
||||||
{
|
{
|
||||||
String8 symbol_cache_path = smsv_cache_path();
|
String8 symbol_cache_path = smsv_cache_path();
|
||||||
if(str8_match(symbol_cache_path, og_path, StringMatchFlag_RightSideSloppy|StringMatchFlag_SlashInsensitive))
|
if(symbol_cache_path.size != 0 && str8_match(symbol_cache_path, og_path, StringMatchFlag_RightSideSloppy|StringMatchFlag_SlashInsensitive))
|
||||||
{
|
{
|
||||||
if(di_shared->auto_downloads)
|
if(di_shared->auto_downloads)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user