dwarf debug info option in builds, fix heuristic to try to load debug info from exe itself

This commit is contained in:
Ryan Fleury
2025-10-01 15:36:36 -07:00
parent db66beaf22
commit 7707ba1d60
6 changed files with 47 additions and 30 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ rb_thread_entry_point(void *p)
String8 string_table = str8_substr(file_data, pe_bin_info.string_table_range);
U64 section_count = raw_section_table.size / sizeof(COFF_SectionHeader);
COFF_SectionHeader *section_table = (COFF_SectionHeader *)raw_section_table.str;
if(dw_is_dwarf_present_coff_section_table(file_data, string_table, section_count, section_table))
if(dw_is_dwarf_present_coff_section_table(string_table, section_count, section_table))
{
file_format_flags |= RB_FileFormatFlag_HasDWARF;
}