From afcd9dd1aab70bfdf8096f168fbc88bd01d2d8ed Mon Sep 17 00:00:00 2001 From: Dennis Duda Date: Sat, 30 Nov 2024 16:37:03 +0100 Subject: [PATCH] Add patched backtrace crate - Get rid of RtlCaptureContext import, manually implement it - Add support for older dbghelp versions. With this, backtraces on XP+ are supported out of the box. It seems that the "best" version for old systems is the one from VS2005, found in "Microsoft Visual Studio 8\Common7\IDE\dbghelp.dll". This one is compiled with 9x support (unlike the VS2003 one!). --- .gitmodules | 2 +- library/backtrace | 2 +- library/std/src/lib.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 33ea0f53cf132..4a2230eebfe19 100644 --- a/.gitmodules +++ b/.gitmodules @@ -41,7 +41,7 @@ shallow = true [submodule "library/backtrace"] path = library/backtrace - url = https://github.com/rust-lang/backtrace-rs.git + url = https://github.com/rust9x/backtrace-rs.git shallow = true [submodule "src/tools/rustc-perf"] path = src/tools/rustc-perf diff --git a/library/backtrace b/library/backtrace index 230570f2dac80..c8bd33768e630 160000 --- a/library/backtrace +++ b/library/backtrace @@ -1 +1 @@ -Subproject commit 230570f2dac80a601f5c0b30da00cc9480bd35eb +Subproject commit c8bd33768e630cd9d9835be156aed023e110d240 diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 5b94f036248cb..48c63bc9b5642 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -308,6 +308,7 @@ #![feature(macro_metavar_expr_concat)] #![feature(min_specialization)] #![feature(must_not_suspend)] +#![feature(naked_functions)] #![feature(needs_panic_runtime)] #![feature(negative_impls)] #![feature(never_type)]