Skip to content

Commit 0d859d8

Browse files
committed
Add a note about in-process backtraces on Windows
1 parent 7a1d357 commit 0d859d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backtrace/dbghelp.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ pub unsafe fn trace(cb: &mut FnMut(&super::Frame) -> bool) {
9898
// the `RtlLookupFunctionEntry` function in kernel32 which will account for
9999
// JIT compiler frames as well. These should be equivalent, but using
100100
// `Rtl*` allows us to backtrace through JIT frames.
101+
//
102+
// Note that `RtlLookupFunctionEntry` only works for in-process backtraces,
103+
// but that's all we support anyway, so it all lines up well.
101104
cfg_if::cfg_if! {
102105
if #[cfg(target_pointer_width = "64")] {
103106
use core::ptr;

0 commit comments

Comments
 (0)