Skip to content

Commit 31a4c79

Browse files
ElykDeerpsifertex
authored andcommitted
DWARF Parser: Remove error log and ignore lexical ranges that start and end at 0
1 parent 3521b09 commit 31a4c79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/dwarf/dwarf_import/src/functions.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ pub(crate) fn parse_lexical_block<R: ReaderType>(
209209
return None;
210210
};
211211

212+
// DWARFv5 spec section 2.17 allows for undefined behavior in cases where the object currently being referred to doesn't exist
213+
if low_pc == 0 && high_pc == 0 {
214+
return None;
215+
}
216+
212217
if low_pc < high_pc {
213218
result.insert(low_pc..high_pc);
214219
} else {

0 commit comments

Comments
 (0)