diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-06-06 15:41:32 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-06-06 15:41:32 -0400 |
| commit | 7dd6f311b81460478b2ffc2726bfd3cb0e62c9ed (patch) | |
| tree | 98cf54618f5f60e17861d877d06e2580fc085d8d /rust/examples | |
| parent | 9319302615964227234021606063023761363473 (diff) | |
Do not crash when DWARF supplies weird info
Diffstat (limited to 'rust/examples')
| -rw-r--r-- | rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs index 3f9f8faa..7ab5775a 100644 --- a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs +++ b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs @@ -249,7 +249,8 @@ impl DebugInfoBuilder { } if raw_name.is_none() && full_name.is_none() { - unreachable!("Function entry in DWARF without full or raw name. Please report this issue."); + error!("Function entry in DWARF without full or raw name. Please report this issue."); + return; } let function = FunctionInfoBuilder { |
