Skip to content

Commit 36082bc

Browse files
committed
test
1 parent 0466a77 commit 36082bc

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/main.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
thing: [stable, beta, nightly, macos, macos-nightly, windows-msvc64, windows-msvc32, windows-gnu64, windows-gnu32]
17+
thing: [stable, beta, nightly, macos, macos-nightly, windows-msvc64, windows-msvc32, windows-gnu64]
1818
include:
1919
- thing: stable
2020
os: ubuntu-latest
@@ -42,9 +42,6 @@ jobs:
4242
- thing: windows-gnu64
4343
os: windows-latest
4444
rust: stable-x86_64-gnu
45-
- thing: windows-gnu32
46-
os: windows-latest
47-
rust: stable-i686-gnu
4845
steps:
4946
- uses: actions/checkout@v1
5047
with:
@@ -85,7 +82,7 @@ jobs:
8582
if: contains(matrix.os, 'ubuntu')
8683
- run: RUSTFLAGS="-C link-arg=-Wl,--compress-debug-sections=zlib-gnu" cargo test --features gimli-symbolize
8784
if: contains(matrix.os, 'ubuntu')
88-
- run: RUSTFLAGS="-Z run-dsymutil=no" cargo test --features gimli-symbolize
85+
- run: cargo clean && RUSTFLAGS="-Z run-dsymutil=no" cargo test --features gimli-symbolize
8986
if: matrix.thing == 'macos-nightly'
9087
- run: cargo build --manifest-path crates/as-if-std/Cargo.toml
9188

src/symbolize/gimli.rs

+12-9
Original file line numberDiff line numberDiff line change
@@ -617,15 +617,18 @@ pub unsafe fn resolve(what: ResolveWhat<'_>, cb: &mut dyn FnMut(&super::Symbol))
617617
name: frame.function.map(|f| f.name.slice()),
618618
});
619619
}
620-
} else if let Some((object_cx, object_addr)) = cx.object.search_object_map(addr as u64) {
621-
if let Ok(mut frames) = object_cx.dwarf.find_frames(object_addr) {
622-
while let Ok(Some(frame)) = frames.next() {
623-
any_frames = true;
624-
call(Symbol::Frame {
625-
addr: addr as *mut c_void,
626-
location: frame.location,
627-
name: frame.function.map(|f| f.name.slice()),
628-
});
620+
}
621+
if !any_frames {
622+
if let Some((object_cx, object_addr)) = cx.object.search_object_map(addr as u64) {
623+
if let Ok(mut frames) = object_cx.dwarf.find_frames(object_addr) {
624+
while let Ok(Some(frame)) = frames.next() {
625+
any_frames = true;
626+
call(Symbol::Frame {
627+
addr: addr as *mut c_void,
628+
location: frame.location,
629+
name: frame.function.map(|f| f.name.slice()),
630+
});
631+
}
629632
}
630633
}
631634
}

0 commit comments

Comments
 (0)