mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 20:55:20 +03:00
and remove execinfo support see: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/36722 https://www.openwall.com/lists/musl/2021/07/16/1 https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/22958
36 lines
1 KiB
Diff
36 lines
1 KiB
Diff
diff --git a/src/tdebug.cpp b/src/tdebug.cpp
|
|
index 0d93be0..cda06a6 100644
|
|
--- a/src/tdebug.cpp
|
|
+++ b/src/tdebug.cpp
|
|
@@ -6,7 +6,6 @@
|
|
#if !defined(__arm__) && !defined(__aarch64__) && !defined(__PPC__)
|
|
|
|
#ifndef _WIN32
|
|
-#include <execinfo.h>
|
|
#ifndef _XOPEN_SOURCE
|
|
#define _XOPEN_SOURCE
|
|
#endif
|
|
@@ -188,7 +187,6 @@ static void printstacktrace(void *uap, void *data) {
|
|
int N = terra_backtrace(frames, maxN, rip, rbp);
|
|
|
|
#ifndef _WIN32
|
|
- char **symbols = backtrace_symbols(frames, N);
|
|
#else
|
|
HANDLE process = GetCurrentProcess();
|
|
SymInitialize(process, NULL, true);
|
|
@@ -202,7 +200,6 @@ static void printstacktrace(void *uap, void *data) {
|
|
uintptr_t ip = (uintptr_t)frames[i];
|
|
if (!printfunctioninfo(C, ip, isNextInst, i)) {
|
|
#ifndef _WIN32
|
|
- printf("%s\n", symbols[i]);
|
|
#else
|
|
char buf[256 + sizeof(SYMBOL_INFO)];
|
|
SYMBOL_INFO *symbol = (SYMBOL_INFO *)buf;
|
|
@@ -217,7 +214,6 @@ static void printstacktrace(void *uap, void *data) {
|
|
}
|
|
}
|
|
#ifndef _WIN32
|
|
- free(symbols);
|
|
#endif
|
|
}
|
|
|