mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
rdi_format_parse: prefer line info idxs with file coordinates in line mapping helper
This commit is contained in:
@@ -302,6 +302,14 @@ rdi_line_info_idx_from_voff(RDI_ParsedLineTable *line_info, RDI_U64 voff)
|
|||||||
{
|
{
|
||||||
RDI_U64 count = 0;
|
RDI_U64 count = 0;
|
||||||
RDI_U64 result = rdi_line_info_idx_range_from_voff(line_info, voff, &count);
|
RDI_U64 result = rdi_line_info_idx_range_from_voff(line_info, voff, &count);
|
||||||
|
for(RDI_U64 idx = 0; idx < count && result+idx < line_info->count; idx += 1)
|
||||||
|
{
|
||||||
|
if(line_info->lines[result+idx].file_idx != 0)
|
||||||
|
{
|
||||||
|
result += idx;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user