adjust line info lookup apis to be range-based, with a first-and-shallowest-only helper

This commit is contained in:
Ryan Fleury
2024-06-10 13:28:08 -07:00
parent 2419a00b11
commit dafbe32e85
4 changed files with 30 additions and 16 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ dasm_parse_thread__entry_point(void *p)
RDI_LineTable *line_table = rdi_element_from_name_idx(rdi, LineTables, unit->line_table_idx);
RDI_ParsedLineTable unit_line_info = {0};
rdi_parsed_from_line_table(rdi, line_table, &unit_line_info);
U64 line_info_idx = rdi_line_info_idx_from_voff(&unit_line_info, voff, 0);
U64 line_info_idx = rdi_line_info_idx_from_voff(&unit_line_info, voff);
if(line_info_idx < unit_line_info.count)
{
RDI_Line *line = &unit_line_info.lines[line_info_idx];