]> git.lizzy.rs Git - rust.git/commit
Auto merge of #50526 - moxian:just-fix, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 29 Jun 2018 09:42:40 +0000 (09:42 +0000)
committerbors <bors@rust-lang.org>
Fri, 29 Jun 2018 09:42:40 +0000 (09:42 +0000)
commit6e5e63a48c3be7de2faf914c2a9e194ff7cede9e
treec596cdfcdc083b157c7ea18d2bd416f151dcd24d
parent2eb6969c6a2efba9e59544bc18b4d96a9f2b2504
parentbe7f619870085121bdd7911aa882c35e70aedb8a
Auto merge of #50526 - moxian:just-fix, r=alexcrichton

Add a fallback for stacktrace printing for older Windows versions.

Some time ago we switched stack inspection functions of dbghelp.dll to their newer alternatives that also capture inlined context.
Unfortunately, said new alternatives are not present in older dbghelp.dll versions.
In particular Windows 7 at the time of writing has dbghelp.dll version 6.1.7601 from 2010, that lacks StackWalkEx and friends.

Tested on my Windows 7 - both msvc and gnu versions produce a readable stacktrace.

Fixes #50138