Update gimli version

This commit is contained in:
Gary Guo 2023-10-28 00:13:56 +01:00
parent 9704d0bf23
commit 00a7465328
3 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ repository = "https://github.com/nbdd0121/unwinding/"
members = ["cdylib", "example"]
[dependencies]
gimli = { version = "0.26.1", default-features = false, features = ["read-core"] }
gimli = { version = "0.28", default-features = false, features = ["read-core"] }
libc = { version = "0.2", optional = true }
spin = { version = "0.9.8", optional = true, default-features = false, features = ["mutex", "spin_mutex"] }
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }

View File

@ -1,6 +1,7 @@
#![doc = include_str!("../README.md")]
#![feature(c_unwind)]
#![feature(naked_functions)]
#![feature(non_exhaustive_omitted_patterns_lint)]
// lang_items is an internal feature. `internal_features` lint is added recently
// so also allow unknown lints to prevent warning in older nightly versions.
#![cfg_attr(

View File

@ -144,6 +144,7 @@ impl Frame {
new_ctx[Arch::SP] = cfa as _;
new_ctx[Arch::RA] = 0;
#[warn(non_exhaustive_omitted_patterns)]
for (reg, rule) in row.registers() {
let value = match *rule {
RegisterRule::Undefined | RegisterRule::SameValue => ctx[*reg],
@ -158,6 +159,8 @@ impl Frame {
}
RegisterRule::ValExpression(expr) => self.evaluate_expression(ctx, expr)?,
RegisterRule::Architectural => unreachable!(),
RegisterRule::Constant(value) => value as usize,
_ => unreachable!(),
};
new_ctx[*reg] = value;
}