mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
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>
This commit is contained in:
parent
f8d76fe79b
commit
a7c7f58d59
3 changed files with 73 additions and 3 deletions
|
@ -26,6 +26,9 @@ public:
|
|||
private:
|
||||
LIBCAMERA_DISABLE_COPY(Backtrace)
|
||||
|
||||
bool backtraceTrace();
|
||||
bool unwindTrace();
|
||||
|
||||
std::vector<void *> backtrace_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue