diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-08-04 20:38:33 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-08-07 16:25:48 -0400 |
| commit | 264a5cf77a2562ac07d67a9e71babb6a5a14e31c (patch) | |
| tree | ada32ec3d9a839c7c74c2a2c9931bb6800f91185 /rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs | |
| parent | 102c3b87334c8f8a3e3c570eb9aeaa33746f38d9 (diff) | |
Change error when applying function without name from dwarf info to debug
Diffstat (limited to 'rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs')
| -rw-r--r-- | rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs index 408b373f..3e5cc1bf 100644 --- a/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs +++ b/rust/examples/dwarf/dwarf_import/src/dwarfdebuginfo.rs @@ -260,7 +260,6 @@ impl DebugInfoBuilder { return Some(*idx); } } - else if let Some(ident) = &full_name { // check if we already know about this full name's index // if we do, and the raw name will change, remove the known raw index if it exists @@ -282,9 +281,8 @@ impl DebugInfoBuilder { return Some(*idx); } } - - if raw_name.is_none() && full_name.is_none() { - error!("Function entry in DWARF without full or raw name. Please report this issue."); + else { + debug!("Function entry in DWARF without full or raw name."); return None; } |
