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
54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
module BacktracingImpl {
|
|
module ImageFormats {
|
|
module Elf {
|
|
header "ImageFormats/Elf/elf.h"
|
|
requires cplusplus
|
|
export *
|
|
}
|
|
module PeCoff {
|
|
header "ImageFormats/PeCoff/pe-coff.h"
|
|
requires cplusplus
|
|
export *
|
|
}
|
|
module Dwarf {
|
|
header "ImageFormats/Dwarf/dwarf.h"
|
|
header "ImageFormats/Dwarf/eh_frame_hdr.h"
|
|
requires cplusplus
|
|
export *
|
|
}
|
|
module CodeView {
|
|
header "ImageFormats/CodeView/codeview.h"
|
|
requires cplusplus
|
|
export *
|
|
}
|
|
module PDB {
|
|
header "ImageFormats/PDB/pdb.h"
|
|
requires cplusplus
|
|
export *
|
|
}
|
|
export *
|
|
}
|
|
|
|
module OS {
|
|
module Darwin { header "OS/Darwin.h" }
|
|
module Windows { header "OS/Windows.h" }
|
|
module WinNTInternals { header "OS/WinNTInternals.h" }
|
|
module Libc { header "OS/Libc.h" }
|
|
}
|
|
|
|
module Runtime {
|
|
header "Runtime/Runtime.h"
|
|
requires cplusplus
|
|
}
|
|
|
|
module FixedLayout {
|
|
header "FixedLayout.h"
|
|
requires cplusplus
|
|
}
|
|
|
|
module CompressionLibs {
|
|
header "Compression.h"
|
|
requires cplusplus
|
|
}
|
|
}
|