Skip to content

Commit a04ee0c

Browse files
author
Kai Luo
committed
Use LookupResult::skip_all_loads after upgrading addr2line
1 parent b2e26e2 commit a04ee0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/symbolize/gimli.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ pub unsafe fn resolve(what: ResolveWhat<'_>, cb: &mut dyn FnMut(&super::Symbol))
374374
None => return,
375375
};
376376
let mut any_frames = false;
377-
if let Ok(mut frames) = cx.dwarf.find_frames(addr as u64) {
377+
if let Ok(mut frames) = cx.dwarf.find_frames(addr as u64).skip_all_loads() {
378378
while let Ok(Some(frame)) = frames.next() {
379379
any_frames = true;
380380
let name = match frame.function {
@@ -390,7 +390,7 @@ pub unsafe fn resolve(what: ResolveWhat<'_>, cb: &mut dyn FnMut(&super::Symbol))
390390
}
391391
if !any_frames {
392392
if let Some((object_cx, object_addr)) = cx.object.search_object_map(addr as u64) {
393-
if let Ok(mut frames) = object_cx.dwarf.find_frames(object_addr) {
393+
if let Ok(mut frames) = object_cx.dwarf.find_frames(object_addr).skip_all_loads() {
394394
while let Ok(Some(frame)) = frames.next() {
395395
any_frames = true;
396396
call(Symbol::Frame {

0 commit comments

Comments
 (0)