summaryrefslogtreecommitdiff
path: root/plugins/dwarf
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-10-15 13:52:52 -0400
committerJosh Ferrell <josh@vector35.com>2025-10-16 16:47:16 -0400
commit1765feb054301ae251e2f155a57b33631c8d9c84 (patch)
tree5f2228d79e1f932cde8795a49e58563e4a6132e2 /plugins/dwarf
parentcd9eea2fdbd51c25a9f17435c561b6fe9377960f (diff)
Improve error messages in dwarf_import
Diffstat (limited to 'plugins/dwarf')
-rw-r--r--plugins/dwarf/dwarf_import/src/lib.rs2
-rw-r--r--plugins/dwarf/dwarf_import/src/types.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/dwarf/dwarf_import/src/lib.rs b/plugins/dwarf/dwarf_import/src/lib.rs
index ebe3c301..dcac4f0b 100644
--- a/plugins/dwarf/dwarf_import/src/lib.rs
+++ b/plugins/dwarf/dwarf_import/src/lib.rs
@@ -193,7 +193,7 @@ fn recover_names_internal<R: ReaderType>(
let resolved_entry = match entry_unit.entry(entry_offset) {
Ok(x) => x,
Err(e) => {
- log::error!("Failed to resolve entry in unit {:?} at offset {:#x} (resolve_namespace_name): {}", entry_unit, entry_offset.0, e);
+ log::error!("Failed to resolve entry in unit {:?} at offset {:#x} (resolve_namespace_name): {}", entry_unit.header.offset(), entry_offset.0, e);
return;
}
};
diff --git a/plugins/dwarf/dwarf_import/src/types.rs b/plugins/dwarf/dwarf_import/src/types.rs
index 822c0668..8242aa8b 100644
--- a/plugins/dwarf/dwarf_import/src/types.rs
+++ b/plugins/dwarf/dwarf_import/src/types.rs
@@ -334,7 +334,7 @@ pub(crate) fn get_type<R: ReaderType>(
Err(e) => {
log::error!(
"Failed to resolve entry in unit {:?} at offset {:#x}: {}",
- entry_unit,
+ entry_unit.header.offset(),
entry_offset.0,
e
);
@@ -369,7 +369,7 @@ pub(crate) fn get_type<R: ReaderType>(
Err(e) => {
log::error!(
"Failed to resolve entry in unit {:?} at offset {:#x}: {}",
- entry_unit,
+ entry_unit.header.offset(),
entry_offset.0,
e
);
@@ -401,7 +401,7 @@ pub(crate) fn get_type<R: ReaderType>(
Err(e) => {
log::error!(
"Failed to resolve entry in unit {:?} at offset {:#x}: {}",
- entry_unit,
+ entry_unit.header.offset(),
entry_offset.0,
e
);