Skip to content

Commit

Permalink
Log failure to display a symbol's value
Browse files Browse the repository at this point in the history
  • Loading branch information
SquareMan committed Oct 15, 2024
1 parent 742f83d commit 581fcf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions objdiff-core/src/arch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl DataType {
// fallback to intrepreting it as bytes.
// https://github.com/encounter/objdiff/issues/124
if self.required_len().is_some_and(|l| bytes.len() != l) {
log::warn!("Failed to display a symbol value for a symbol whose size doesn't match the instruction referencing it.");
return None;
}

Expand Down

0 comments on commit 581fcf4

Please sign in to comment.