summaryrefslogtreecommitdiffstats
path: root/libbacktrace/BacktraceMap.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Refactor the code.Christopher Ferris2015-03-311-6/+3
| | | | | | | | The object hierarchy was confusing and convoluted. This removes a lot of unnecessary code, and consolidates the BacktraceCurrent and BacktraceThread code into BacktraceCurrent. Change-Id: I01c8407d493712a48169df49dd3ff46db4a7c3ae
* Move map data into backtrace data proper.Christopher Ferris2015-02-061-3/+4
| | | | | | | | | | | 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
* Add uncached argument to BacktraceMap::Create on darwinBrian Carlstrom2014-08-051-1/+1
| | | | Change-Id: I247a98fc3b98879a0c34a975f9914ccec95d1a04
* Change sprintf to snprintf calls.Christopher Ferris2014-04-241-2/+2
| | | | Change-Id: I8893246fcd541d97b02a1a4cac81c53c6cd2e394
* Fix logging errors inside ALOGVColin Cross2014-02-071-1/+2
| | | | | | Fix errors exposed by adding checking to disabled ALOGVs. Change-Id: I36b77bb0ad8dc7661b0f834f20d1179b86134d57
* Re-enable libunwind for arm.Christopher Ferris2014-01-281-0/+17
| | | | | | | | | | 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
* Attempt to fix Mac buildBrian Carlstrom2014-01-181-1/+1
| | | | Change-Id: I1364255bfed7788a35531962508bad804b8d5b7f
* Rewrite libbacktrace to be all C++.Christopher Ferris2014-01-161-0/+130
This includes removing the map_info.c source and replacing it with the BacktraceMap class to handle all map related code. Change all callers of libbacktrace map functionality. Also modify the corkscrew thread code so that it doesn't need to build the map twice (once in the corkscrew format and once in the libbacktrace format). Change-Id: I32865a39f83a3dd6f958fc03c2759ba47d12382e