diff options
author | Robin Watts <robin@peeves.(none)> | 2016-03-05 14:32:40 -0800 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-07 12:40:58 +0000 |
commit | 497c1196373ed40d9ed9cf045405be7df6ac55c4 (patch) | |
tree | 1ac035cb91365c7c87b1ce92326a1993ce599bc5 /platform | |
parent | ba1365e1d7c3cc673e9516c2423322edfb8a02d7 (diff) | |
download | mupdf-497c1196373ed40d9ed9cf045405be7df6ac55c4.tar.xz |
Memento: Store/display backtraces with blocks.
If built with MEMENTO_DETAILS (on by default), we store the
backtrace on every event that affects a block.
Memento_details(address) will display the events that affected
a block (typically malloc, {realloc}*, free), including the
backtrace at each point.
Windows and linux use different mechanisms for this. Windows
loads a DLL and calls windows specific functions - no extra
libraries are required.
Linux also loads a shared object (libbacktrace.so). This is not
present on all platforms, so on platforms where it is not available
we just get addresses. These can be converted using addr2line
(unless ASLR is enabled).
In order for linux to be able to load libbacktrace.so we link in
libdl. If this is not available, define HAVE_LIBDL=no when building
the memento target.
Diffstat (limited to 'platform')
0 files changed, 0 insertions, 0 deletions