aboutsummaryrefslogtreecommitdiffstats
path: root/fastos
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-04-28 14:12:00 +0200
committerTor Egge <Tor.Egge@online.no>2021-04-28 14:12:00 +0200
commit786155530c5fff45f25ad31c91382b83633ae304 (patch)
tree951cdd47664580d7da34d3a91602949a484ab898 /fastos
parent4bab3a578ecf28510f5891531ef538c95fc46346 (diff)
Enable fastos backtrace for aarch64.
Diffstat (limited to 'fastos')
-rw-r--r--fastos/src/tests/backtracetest.cpp2
-rw-r--r--fastos/src/vespa/fastos/backtrace.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fastos/src/tests/backtracetest.cpp b/fastos/src/tests/backtracetest.cpp
index 8fa3b42bfc9..0af25966aa3 100644
--- a/fastos/src/tests/backtracetest.cpp
+++ b/fastos/src/tests/backtracetest.cpp
@@ -6,7 +6,7 @@
#include "tests.h"
-#if defined(__x86_64__) && defined(__linux__)
+#if (defined(__x86_64__) || defined(__aarch64__)) && defined(__linux__)
class Tracker
{
private:
diff --git a/fastos/src/vespa/fastos/backtrace.c b/fastos/src/vespa/fastos/backtrace.c
index 0022459790a..9b720e25961 100644
--- a/fastos/src/vespa/fastos/backtrace.c
+++ b/fastos/src/vespa/fastos/backtrace.c
@@ -1,7 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "backtrace.h"
-#if defined(__i386__) || defined(__clang__)
+#if defined(__i386__) || defined(__clang__) || defined(__aarch64__)
// use GLIBC version, hope it works
extern int backtrace(void **buffer, int size);
#define HAVE_BACKTRACE