mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
29a63e572a
`DebugActiveProcess()` can fail under certain circumstances, which results in us not seeing the crashing thread, hence you don't get a backtrace (in fact, the backtracer used to crash, since we never expected to be in that situation). Instead, use `NtQuerySystemInformation()` to get the thread list, then `OpenProcess()` and `OpenThread()` to get process/thread handles. This should be more robust. rdar://171438432
What is this? ============= The libexec directory contains the source code for auxiliary executables that ship with the Swift runtime, as opposed to being part of the toolchain. On UNIX-like platforms, if the runtime is installed in /usr/lib/swift (for instance), these are things that you would expect to find in /usr/libexec/swift.