diff --git a/examples/Dockerfile b/examples/Dockerfile index aabb4dd..c7af1ec 100644 --- a/examples/Dockerfile +++ b/examples/Dockerfile @@ -1,3 +1,3 @@ FROM alpine:latest -RUN apk update && apk add cmake make git g++ bash curl-dev zlib-dev +RUN apk add --no-cache cmake make g++ git bash curl-dev zlib-dev libexecinfo-dev diff --git a/src/backward.h b/src/backward.h index e9e56c7..5128410 100644 --- a/src/backward.h +++ b/src/backward.h @@ -240,6 +240,10 @@ # endif # endif +# if BACKWARD_HAS_BACKTRACE_SYMBOL == 1 +# include +# endif + # if (BACKWARD_HAS_BACKTRACE == 1) || (BACKWARD_HAS_BACKTRACE_SYMBOL == 1) // then we shall rely on backtrace # include @@ -254,7 +258,7 @@ // #define BACKWARD_HAS_UNWIND 1 // - unwind comes from libgcc, but I saw an equivalent inside clang itself. // - with unwind, the stacktrace is as accurate as it can possibly be, since -// this is used by the C++ runtine in gcc/clang for stack unwinding on +// this is used by the C++ runtime in gcc/clang for stack unwinding on // exception. // - normally libgcc is already linked to your program by default. //