Skip to content

Commit e9188a5

Browse files
let chain harder!
1 parent 16c9851 commit e9188a5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/symbolize/gimli.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -478,16 +478,16 @@ pub unsafe fn resolve(what: ResolveWhat<'_>, cb: &mut dyn FnMut(&super::Symbol))
478478
}
479479
}
480480
if !any_frames {
481-
if let Some((object_cx, object_addr)) = cx.object.search_object_map(addr as u64) {
482-
if let Ok(mut frames) = object_cx.find_frames(stash, object_addr) {
483-
while let Ok(Some(frame)) = frames.next() {
484-
any_frames = true;
485-
call(Symbol::Frame {
486-
addr: addr as *mut c_void,
487-
location: frame.location,
488-
name: frame.function.map(|f| f.name.slice()),
489-
});
490-
}
481+
if let Some((object_cx, object_addr)) = cx.object.search_object_map(addr as u64)
482+
&& let Ok(mut frames) = object_cx.find_frames(stash, object_addr)
483+
{
484+
while let Ok(Some(frame)) = frames.next() {
485+
any_frames = true;
486+
call(Symbol::Frame {
487+
addr: addr as *mut c_void,
488+
location: frame.location,
489+
name: frame.function.map(|f| f.name.slice()),
490+
});
491491
}
492492
}
493493
}

0 commit comments

Comments
 (0)