Skip to content

Commit

Permalink
Actually update extab stuff (#110)
Browse files Browse the repository at this point in the history
* Update cwextab

* Update

* Update ppc.rs

* Make fmt shut up
  • Loading branch information
CelestialAmber authored Sep 24, 2024
1 parent c1cb4b0 commit 35bbd40
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion objdiff-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ gimli = { version = "0.31", default-features = false, features = ["read-all"], o

# ppc
cwdemangle = { version = "1.0", optional = true }
cwextab = { version = "0.2", optional = true }
cwextab = { version = "0.3.1", optional = true }
ppc750cl = { version = "0.3", optional = true }

# mips
Expand Down
10 changes: 7 additions & 3 deletions objdiff-core/src/arch/ppc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,13 @@ fn decode_exception_info(file: &File<'_>) -> Result<Option<BTreeMap<usize, Excep
continue;
};
let data = match decode_extab(extab_data) {
Some(decoded_data) => decoded_data,
None => {
log::warn!("Exception table decoding failed for function {}", extab_func_name);
Ok(decoded_data) => decoded_data,
Err(e) => {
log::warn!(
"Exception table decoding failed for function {}, reason: {}",
extab_func_name,
e.to_string()
);
return Ok(None);
}
};
Expand Down
2 changes: 1 addition & 1 deletion objdiff-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bytes = "1.7"
cfg-if = "1.0"
const_format = "0.2"
cwdemangle = "1.0"
cwextab = "0.3"
cwextab = "0.3.1"
dirs = "5.0"
egui = "0.28"
egui_extras = "0.28"
Expand Down

0 comments on commit 35bbd40

Please sign in to comment.