Skip to content

Commit 473fefc

Browse files
committed
config.h: disabled backtrace support for macOS for now since the format is completely different
1 parent af31168 commit 473fefc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cli/stacktrace.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ void print_stacktrace(FILE* output, int start_idx, bool demangling, int maxdepth
5252
char demangle_buffer[2048]= {0};
5353
for (int i = offset; i < maxdepth; ++i) {
5454
const char * const symbolString = symbolStringList[i];
55+
// TODO: implement parsing for __APPLE__
5556
// skip all leading libc symbols so the first symbol is our code
5657
if (omit_above_own && !own_code) {
5758
if (strstr(symbolString, "/libc.so.6") != nullptr)

lib/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static const std::string emptyString;
211211
#define USE_WINDOWS_SEH
212212
#endif
213213

214-
#if !defined(NO_UNIX_BACKTRACE_SUPPORT) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__NetBSD__) && !defined(__SVR4) && !defined(__QNX__)
214+
#if !defined(NO_UNIX_BACKTRACE_SUPPORT) && defined(__GNUC__) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__NetBSD__) && !defined(__SVR4) && !defined(__QNX__)
215215
#define USE_UNIX_BACKTRACE_SUPPORT
216216
#endif
217217

0 commit comments

Comments
 (0)