summaryrefslogtreecommitdiff
path: root/rust/examples/dwarf/shared/src
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-06-06 21:48:58 -0400
committerJosh Ferrell <josh@vector35.com>2024-06-06 21:48:58 -0400
commit7a521850cfce3f0b879210a34907380642c3b220 (patch)
tree1579d60fc5e110cd3dfc958fb29923723bb28256 /rust/examples/dwarf/shared/src
parent783a3cb0f4c2f2943653293937010b3de1aaf900 (diff)
Fix DWARF parser reporting as valid for any binary with a build id
Diffstat (limited to 'rust/examples/dwarf/shared/src')
-rw-r--r--rust/examples/dwarf/shared/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/examples/dwarf/shared/src/lib.rs b/rust/examples/dwarf/shared/src/lib.rs
index e3d1315d..febbe3ed 100644
--- a/rust/examples/dwarf/shared/src/lib.rs
+++ b/rust/examples/dwarf/shared/src/lib.rs
@@ -54,12 +54,12 @@ pub fn is_raw_dwo_dwarf(view: &BinaryView) -> bool {
}
pub fn can_use_debuginfod(view: &BinaryView) -> bool {
- can_use_build_id(view) &&
+ has_build_id_section(view) &&
Settings::new("")
.get_bool("network.enableDebuginfod", Some(view), None)
}
-pub fn can_use_build_id(view: &BinaryView) -> bool {
+pub fn has_build_id_section(view: &BinaryView) -> bool {
if let Ok(raw_view) = view.raw_view() {
return raw_view.section_by_name(".note.gnu.build-id").is_ok()
}