Skip to content

Commit dccd0bb

Browse files
author
Diego Ferrari
committed
[DWARF] fixed math.h bug
1 parent b4c8e20 commit dccd0bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/process/loading/dwarf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ debug_line_info dwarf_decode_lines(uintptr_t ptr, size_t size, uintptr_t debug_l
427427
.column = state.column,
428428
.file = files[state.file]
429429
};
430-
} else if (state.address > address) {//TODO: This can report false positives. Often at math.h:1 it seems
430+
} else if (state.address > address && previous_state.address && previous_state.address < address) {
431431
return (debug_line_info){
432432
.address = address,
433433
.line = previous_state.line,

0 commit comments

Comments
 (0)