mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
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:
parent
3d82f65f45
commit
30d807eea0
@ -21,17 +21,6 @@ Install ```libexecinfo``` package. Occurs when using musl.
|
|||||||
#### Undefined reference to 'backtrace'
|
#### Undefined reference to 'backtrace'
|
||||||
Add ```-lexecinfo``` when compiling. Occurs when using musl.
|
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
|
Webclient patches
|
||||||
---------------------
|
---------------------
|
||||||
#### Starting game **Error 00000002 when setting current directory**
|
#### Starting game **Error 00000002 when setting current directory**
|
||||||
|
@ -800,14 +800,7 @@ void Logger_Hook(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Logger_Abort2(ReturnCode result, const char* raw_msg) {
|
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);
|
Logger_AbortCommon(result, raw_msg, NULL);
|
||||||
#else
|
|
||||||
ucontext_t ctx;
|
|
||||||
getcontext(&ctx);
|
|
||||||
Logger_AbortCommon(result, raw_msg, &ctx);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user