summaryrefslogtreecommitdiffstats
path: root/libbacktrace/BacktraceImpl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move map data into backtrace data proper.Christopher Ferris2015-02-061-8/+9
| | | | | | | | | | | The backtrace structure used to include a pointer to a backtrace_map_t that represented the map data for a particular pc. This introduced a race condition where the pointer could be discarded, but the backtrace structure still contained a pointer to garbage memory. Now all of the map information is right in the structure. Bug: 19028453 Change-Id: If7088a73f3c6bf1f3bc8cdd2bb4b62e7cab831c0
* Only include ucontext.h when necessary.Christopher Ferris2014-05-091-0/+1
| | | | Change-Id: I29014f6c6b82e0a9797e5d76147b3c4e3d82a7f5
* Rewrite unwind thread handling.Christopher Ferris2014-05-081-2/+2
| | | | | | | | | | | | | | | | | | This new version doesn't require any specialized thread implementation, it uses the Current implementation to do its job. In addition, it runs much faster when multiple threads are trying to unwind at the same time since the global signal lock is held for only a small amount of time. Even running through the threads one at a time should be faster since it no longer requires two passes through the unwound stacks. The new code now allows multiple simultaneous unwinds of the same thread. Finally, add the ability to unwind from a ucontext_t passed in. This functionality doesn't work for remote unwinds yet. Change-Id: I4d181d7ca5ffd2acfd1686e668e6d21e36b425cb
* Create an UnwindMapLocal object.Christopher Ferris2014-04-031-0/+1
| | | | | | | | | | | | | The way libunwind handles local unwinds is different from remote unwinds, so create a new map object to handle the differences. Add new test to verify the map data is being generated correctly. Add new tests to check for leaks. Refactor the BACK_LOGW code into a single header file. Change-Id: I01f3cbfc4b927646174ea1b614fa25d23b9b3427
* LP64: Enable debuggerd/libbacktrace/libunwind.Pavel Chupin2014-01-301-10/+8
| | | | | Change-Id: I2e432839f86c33c2adbaac8cc12ca8961956044b Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Avoid redefinition of __STDC_FORMAT_MACROS.Ian Rogers2014-01-291-1/+0
| | | | Change-Id: I5c65ea196bb9a197a74899ceb53543f289f6d494
* Re-enable libunwind for arm.Christopher Ferris2014-01-281-0/+208
Update to handle the new optimized way that libunwind works. In addition, a small refactor of the BacktraceMap code. A few new tests of for good measure. Change-Id: I2f9b4f5ad5a0dfe907b31febee76e4b9b94fb76f