Remove getcontext usage.

This was only used with crashes due to Logger_Abort/Loggert_Abort2. And in those cases, the message and backtrace are what actually matter.
This commit is contained in:
UnknownShadow200 2019-08-11 13:15:54 +10:00
parent 3d82f65f45
commit 30d807eea0
2 changed files with 0 additions and 18 deletions

View File

@ -20,17 +20,6 @@ Install ```libexecinfo``` package. Occurs when using musl.
#### Undefined reference to 'backtrace'
Add ```-lexecinfo``` when compiling. Occurs when using musl.
#### Undefined reference to 'getcontext'
Occurs when using musl. Change
```C
getcontext(&ctx);
Logger_AbortCommon(result, raw_msg, &ctx);
```
to
```C
Logger_AbortCommon(result, raw_msg, NULL);
```
Webclient patches
---------------------

View File

@ -800,14 +800,7 @@ void Logger_Hook(void) {
}
void Logger_Abort2(ReturnCode result, const char* raw_msg) {
#if defined CC_BUILD_OPENBSD || defined CC_BUILD_ANDROID
/* getcontext is absent on OpenBSD and Android */
Logger_AbortCommon(result, raw_msg, NULL);
#else
ucontext_t ctx;
getcontext(&ctx);
Logger_AbortCommon(result, raw_msg, &ctx);
#endif
}
#endif