[Backtracing][Linux] Add Linux crash handler to the runtime.

This also adds a function to demangle a symbol, and a way for the
backtracing code to report warning messages to the same place as
the main runtime.

I'd like to rename the _swift_isThunkFunction() SPI also, but we
can't do that until we've made the changes to the _Backtracing
library, so we'll do that there instead.

rdar://110261430
This commit is contained in:
Alastair Houghton
2023-06-05 15:35:20 +01:00
parent 73df9f2dd9
commit 2dcaa6f14f
7 changed files with 959 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ void suspend_other_threads();
void resume_other_threads();
bool run_backtracer(void);
swift::CrashInfo crashInfo;
CrashInfo crashInfo;
os_unfair_lock crashLock = OS_UNFAIR_LOCK_INIT;