diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-24 05:05:51 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-10-15 05:05:25 +0300 |
commit | a7c7f58d599573250276199faec5108e5fb0ed74 (patch) | |
tree | 0688d1e12d8a0076c05b8f9561e07f2c4dbdaae5 /include | |
parent | f8d76fe79b6137d3996f951568b29a615bb3c415 (diff) |
libcamera: base: backtrace: Use libunwind when available
libunwind is an alternative to glibc's backtrace() to extract a
backtrace. Use it when available to extend backtrace support to more
platforms.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/base/backtrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libcamera/base/backtrace.h b/include/libcamera/base/backtrace.h index aefc76de..58ccc14c 100644 --- a/include/libcamera/base/backtrace.h +++ b/include/libcamera/base/backtrace.h @@ -26,6 +26,9 @@ public: private: LIBCAMERA_DISABLE_COPY(Backtrace) + bool backtraceTrace(); + bool unwindTrace(); + std::vector<void *> backtrace_; }; |