Skip to content

Commit dccd7b1

Browse files
committed
Update gimli dependency to 0.33
Signed-off-by: Daniel Müller <[email protected]>
1 parent 934ea1f commit dccd7b1

File tree

4 files changed

+27
-20
lines changed

4 files changed

+27
-20
lines changed

Cargo.lock

Lines changed: 19 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ codegen-units = 256
172172

173173
[dependencies]
174174
cpp_demangle = {version = "0.5", optional = true}
175-
gimli = {version = "0.32", optional = true}
175+
gimli = {version = "0.33", optional = true}
176176
libc = "0.2"
177177
memmap2 = {version = "0.9", default-features = false}
178178
miniz_oxide = {version = "0.9", default-features = false, features = ["simd", "with-alloc"], optional = true}
@@ -185,7 +185,7 @@ zstd = {version = "0.13", default-features = false, optional = true}
185185
[dev-dependencies]
186186
# For performance comparison; pinned, because we use #[doc(hidden)]
187187
# APIs.
188-
addr2line = "=0.25.1"
188+
addr2line = "=0.26.0"
189189
anyhow = "1.0"
190190
blazesym-dev = {path = "dev", features = ["generate-unit-test-files"]}
191191
criterion = {version = "0.8", default-features = false, features = ["rayon", "cargo_bench_support"]}

src/dwarf/function.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn name_entry<'dwarf>(
4949
let abbrev = if let Some(abbrev) = entries.read_abbreviation()? {
5050
abbrev
5151
} else {
52-
return Err(gimli::Error::NoEntryAtGivenOffset)
52+
return Err(gimli::Error::NoEntryAtGivenOffset(offset.0 as u64))
5353
};
5454

5555
let mut name = None;
@@ -112,7 +112,7 @@ fn name_attr<'dwarf>(
112112

113113
struct InlinedState<'call, 'dwarf> {
114114
// Mutable fields.
115-
entries: gimli::EntriesRaw<'call, 'call, R<'dwarf>>,
115+
entries: gimli::EntriesRaw<'call, R<'dwarf>>,
116116
functions: Vec<InlinedFunction<'dwarf>>,
117117
addresses: Vec<InlinedFunctionAddress>,
118118

@@ -395,7 +395,7 @@ impl<'dwarf> Function<'dwarf> {
395395

396396

397397
fn skip(
398-
entries: &mut gimli::EntriesRaw<'_, '_, R<'dwarf>>,
398+
entries: &mut gimli::EntriesRaw<'_, R<'dwarf>>,
399399
abbrev: &gimli::Abbreviation,
400400
depth: isize,
401401
) -> Result<(), Error> {

src/dwarf/units.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl<'dwarf> Units<'dwarf> {
7272
let mut units = sections.units();
7373
while let Some(header) = units.next()? {
7474
let unit_id = res_units.len();
75-
let offset = match header.offset().as_debug_info_offset() {
75+
let offset = match header.offset().to_debug_info_offset(&header) {
7676
Some(offset) => offset,
7777
None => continue,
7878
};
@@ -268,13 +268,13 @@ impl<'dwarf> Units<'dwarf> {
268268
.binary_search_by_key(&offset.0, |unit| unit.offset().0)
269269
{
270270
// There is never a DIE at the unit offset or before the first unit.
271-
Ok(_) | Err(0) => return Err(gimli::Error::NoEntryAtGivenOffset),
271+
Ok(_) | Err(0) => return Err(gimli::Error::NoEntryAtGivenOffset(offset.0 as u64)),
272272
Err(i) => self.units[i - 1].dw_unit(),
273273
};
274274

275275
let unit_offset = offset
276276
.to_unit_offset(&unit.header)
277-
.ok_or(gimli::Error::NoEntryAtGivenOffset)?;
277+
.ok_or(gimli::Error::NoEntryAtGivenOffset(offset.0 as u64))?;
278278
let unit = gimli::UnitRef::new(&self.dwarf, unit);
279279
Ok((unit, unit_offset))
280280
}

0 commit comments

Comments
 (0)