Skip to content

Commit 24500fb

Browse files
committed
Move dbghelp64.rs to win64.rs
Windows 64-bit doesn't use dbghelp for tracing, so the name was confusing.
1 parent e33eaac commit 24500fb

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/backtrace/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ cfg_if::cfg_if! {
189189
} else if #[cfg(all(windows, not(target_vendor = "uwp")))] {
190190
cfg_if::cfg_if! {
191191
if #[cfg(any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "arm64ec"))] {
192-
mod dbghelp64;
193-
use dbghelp64 as dbghelp;
192+
mod win64;
193+
use self::win64::trace as trace_imp;
194+
pub(crate) use self::win64::Frame as FrameImp;
194195
} else if #[cfg(any(target_arch = "x86", target_arch = "arm"))] {
195196
mod dbghelp32;
196-
use dbghelp32 as dbghelp;
197+
use self::dbghelp32::trace as trace_imp;
198+
pub(crate) use self::dbghelp32::Frame as FrameImp;
197199
}
198200
}
199-
use self::dbghelp::trace as trace_imp;
200-
pub(crate) use self::dbghelp::Frame as FrameImp;
201201
} else {
202202
mod noop;
203203
use self::noop::trace as trace_imp;

src/backtrace/dbghelp64.rs renamed to src/backtrace/win64.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ impl MyContext {
7777
}
7878
}
7979

80-
#[cfg(any(
81-
target_arch = "x86_64",
82-
target_arch = "aarch64",
83-
target_arch = "arm64ec"
84-
))]
8580
#[inline(always)]
8681
pub unsafe fn trace(cb: &mut dyn FnMut(&super::Frame) -> bool) {
8782
use core::ptr;

0 commit comments

Comments
 (0)