summaryrefslogtreecommitdiffstats
path: root/libbacktrace
Commit message (Collapse)AuthorAgeFilesLines
* libbacktrace_libc++ needs to be multilib on the Mac too.Ian Rogers2014-06-241-0/+2
| | | | Change-Id: I2053345253c1d57c3485b790163ba0b4b10cc326
* Enable host multilib for ART testing.Ian Rogers2014-06-172-0/+3
| | | | Change-Id: Ic3ae5122eba13565fb5a4cb1bd0e7e465fb2140c
* Build the libc++ variant of libbacktrace on the host for Mac.Ian Rogers2014-06-111-0/+17
| | | | | Bug: 13751317 Change-Id: Iefadec1cd9b3ca109ac436bd5eb7c096c2dcbe40
* Only copy mcontext data from sigcontext.Christopher Ferris2014-05-232-5/+9
| | | | | | | | | | The ucontext_t data structure could be bigger than the kernel data structure. Since the unwinder only cares about the mcontext data, only copy that out of the structure. The mcontext data is the same size in the kernel and in the ucontext_t structure. Bug: 15189014 Change-Id: I5978169c4425b8212e11db85a57eb319cd0e264b
* Merge "Remove libstdc++ dependency from host libbacktrace"Dan Albert2014-05-221-0/+3
|\
| * Remove libstdc++ dependency from host libbacktraceDan Albert2014-05-211-0/+3
| | | | | | | | | | | | | | The libc++ version of libbacktrace on the host was still linking against libstdc++, and this was causing problems in art. Change-Id: I1d14fb9e18abd074affcf46c8044407041970669
* | Add missing headersDan Albert2014-05-211-0/+1
|/ | | | | | | These headers are needed for pid_t and free when using libc++ headers (POSIX does not require that the symbols be exposed with the previous includes). Change-Id: Ia51a4fdfdbae7377130a43c401c2d8d241671d1e
* Really fixes the ub branchesDan Albert2014-05-191-1/+1
| | | | Change-Id: I1d78f4e6c1d8086c2895f6739c3202e9ef74fee2
* Fix unbundled branchesDan Albert2014-05-191-0/+3
| | | | Change-Id: Ic8a58a6cf55221ec361bbb80c7c9636fe1349943
* Adds libc++ versions of libbacktraceDan Albert2014-05-192-1/+46
| | | | Change-Id: I4a1ce30e7c2166ac1846cc90de0252beee542ee6
* Only include ucontext.h when necessary.Christopher Ferris2014-05-094-2/+3
| | | | Change-Id: I29014f6c6b82e0a9797e5d76147b3c4e3d82a7f5
* Merge "Rewrite unwind thread handling."Christopher Ferris2014-05-0910-257/+267
|\
| * Rewrite unwind thread handling.Christopher Ferris2014-05-0810-257/+267
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-3/+1
|/ | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* Use real time signal for threads instead of SIGURG.Christopher Ferris2014-04-303-5/+23
| | | | | | | This guarantees that any application is not also using this signal for some other purpose. Change-Id: I7c9bbb0ec8bb4e13322ecda951bcd43c6bf6ee1a
* Small cleanup of duplicated test values.Christopher Ferris2014-04-281-3/+0
| | | | | | | A few flags were duplicates of flags already passed when using the TEST targets. Change-Id: I8f0d09915f5b830050fe25635a0852e8536e3aca
* Remove libcorkscrew.Christopher Ferris2014-04-253-354/+0
| | | | | | All unwinding is now done through libunwind. Change-Id: I93ba6f5bd5ad41eeb5f6a93113b7894f842cc8e0
* Change sprintf to snprintf calls.Christopher Ferris2014-04-241-2/+2
| | | | Change-Id: I8893246fcd541d97b02a1a4cac81c53c6cd2e394
* Remove the arm64 special case.Christopher Ferris2014-04-211-7/+1
| | | | | | The stack-protector option is handled by the global makefiles. Change-Id: I99c4a1624e72ad91ac10eef27c0e3758fe9af8ba
* Avoid logging functions from signal handler.Christopher Ferris2014-04-152-8/+14
| | | | | | (cherry picked from commit 9007677fcbcd7cf01725e155920a8abfcb323c56) Change-Id: Ic0163f43308c6a281ab3757d90933e5127843fed
* Create an UnwindMapLocal object.Christopher Ferris2014-04-0313-62/+379
| | | | | | | | | | | | | 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
* Enable libunwind for mips.Christopher Ferris2014-02-261-1/+1
| | | | Change-Id: Ib1d7bea0cb7ac09a9e15c7f429ecfd944649fc87
* Fix logging errors inside ALOGVColin Cross2014-02-071-1/+2
| | | | | | Fix errors exposed by adding checking to disabled ALOGVs. Change-Id: I36b77bb0ad8dc7661b0f834f20d1179b86134d57
* Call a specialized local map set.Christopher Ferris2014-02-011-3/+3
| | | | | Bug: 12852152 Change-Id: I8a0c558bc218805b0e06371af0af055e4aa6e0bb
* Refactor makefile.Christopher Ferris2014-01-312-220/+176
| | | | | | | With this change allow the creation of host backtrace libraries using libunwind. Change-Id: Ie48bb36cf0d2eccf94cb8ff516d829d8032f11f2
* LP64: Enable debuggerd/libbacktrace/libunwind.Pavel Chupin2014-01-304-15/+12
| | | | | Change-Id: I2e432839f86c33c2adbaac8cc12ca8961956044b Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* x86: Enable libunwindPavel Chupin2014-01-301-1/+1
| | | | | Change-Id: I098787f57801f68d0419732d5fd475c7e916c92c Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Clean up UnwindCurrent.cpp's use of ucontext.h.Christopher Ferris2014-01-301-21/+2
| | | | Change-Id: I9eff7486b9fe89eac57b5555649b871bc6f1cc77
* Avoid redefinition of __STDC_FORMAT_MACROS.Ian Rogers2014-01-291-1/+0
| | | | Change-Id: I5c65ea196bb9a197a74899ceb53543f289f6d494
* Fix global pointing to local variable.Christopher Ferris2014-01-281-3/+3
| | | | Change-Id: I933cbb680ca6310c13634f09a9827077c8dbd568
* Re-enable libunwind for arm.Christopher Ferris2014-01-2815-102/+287
| | | | | | | | | | 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
* Get arm64 to compile.Christopher Ferris2014-01-272-3/+2
| | | | Change-Id: Ica021aa134388fe7069a5de5df8036ecf0d570f8
* system/core: rename aarch64 target to arm64Colin Cross2014-01-231-2/+2
| | | | | | | Rename aarch64 build targets to arm64. The gcc toolchain is still aarch64. Change-Id: Ia92d8a50824e5329cf00fd6f4f92eae112b7f3a3
* Attempt to fix Mac buildBrian Carlstrom2014-01-181-1/+1
| | | | Change-Id: I1364255bfed7788a35531962508bad804b8d5b7f
* Rewrite libbacktrace to be all C++.Christopher Ferris2014-01-1614-511/+412
| | | | | | | | | | | | | 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
* Copy the bionic -fstack-protector hack into libbacktrace.Elliott Hughes2014-01-141-0/+5
| | | | | | aarch64 doesn't support -fstack-protector yet. Change-Id: Id1e589742ba074f59d3390d059248c9b371aff58
* Create a bare bones host libbacktrace on mac.Christopher Ferris2014-01-133-16/+34
| | | | | | | This allows the libbacktrace library to compile for host on mac. Bug: 12474939 Change-Id: I32cbcf996e6fe9057e5065ba21f89086343704a0
* Next phase of the move, reformat use C++ features.Christopher Ferris2014-01-135-183/+158
| | | | | | | | | | | | | | | | | Use the libbacktrace C++ interface instead of the C interface in debuggerd. Reformat the debuggerd code to be closer to Google C++ style. Fix all debuggerd casts to be C++ casts. Add a frame number to the frame data structure for ease of formatting and add another FormatFrameData function. Change the format_test to use the new FormatFrameData function. Modify all of the backtrace_test to use the C++ interface. Change-Id: I10e1610861acf7f4a3ad53276b74971cfbfda464
* Move BACKTRACE_NO_TID to BACKTRACE_CURRENT_THREAD.Christopher Ferris2014-01-092-14/+21
| | | | | | | | | | | Use a bit better name for this. The other name was a bit confusing. Change-Id: I1261f2ee3854a9c8b82133ad0bfbbbe48b43c9ac (cherry picked from commit 242b1a8c7a5ec73172bac811e51acbc27201f22c) Conflicts: libbacktrace/Backtrace.cpp
* Refactor to share map_info amongst threads.Christopher Ferris2014-01-087-38/+52
| | | | | | | Allow the use of the same map info to be shared when getting information on multiple threads from the same pid. Change-Id: I2e460e20154a10f4894ae563331fb32179e4551f
* Fix the ucontext for mips/x86.Christopher Ferris2014-01-071-15/+4
| | | | | | | | | | | Remove the mips ucontext definition, there is no need for it any more. Fix the mips/x86 ucontext copy code to copy the entire uc_mcontext data across. Fix a potential memory leak too. Change-Id: I4272022da5281ed881e2d59a3e19e7f33c01aceb
* Switch ARM back to libcorkscrew temporarily.Elliott Hughes2014-01-021-2/+5
| | | | | | | | We're seeing major stack trace generation performance regression and want to find out whether it's libunwind. Bug: 12181612 Change-Id: I3866ea956859f5cbdfe4f1ee6f20a2b6d39962c4
* Revert "Revert enabling libunwind."Christopher Ferris2013-11-081-1/+1
| | | | | | This reverts commit db2309e3d104e47088135a7f1bb89ac853657838. Change-Id: I1626442f029473066ce20921667a406f1a1ea865
* Revert enabling libunwind.Christopher Ferris2013-11-071-1/+1
| | | | | | It appears that some branches might not have libunwind set up properly. Change-Id: Ia72889e115bc2791c7a9e67563c5f4a62197cafd
* Enable libunwind on arm platforms.Christopher Ferris2013-11-061-1/+1
| | | | | Bug: 8410085 Change-Id: I8a645ec0e04b38fc186bbc0f0cc597e31b05cc55
* Use new defines in test code.Christopher Ferris2013-11-052-17/+15
| | | | | | | In addition, fix up the warnings and remove the -fpermissive when compiling. Change-Id: Ia27b902499b34ff3d881acb9057120af390baf2c
* Add some clarifying defines.Christopher Ferris2013-11-051-3/+3
| | | | | | | In order to be explicit in the Backtrace::Create() calls, adding a couple of defines and some comments to describe what they mean. Change-Id: I6ad08c529791821496a95fa33cea1c95b0a7eada
* Add corkscrew support for finding static symbols.Christopher Ferris2013-11-041-7/+25
| | | | Change-Id: Ie557a9b0efadece75e1accaa7e214fb559eb19e1
* More libbacktrace fixes.Christopher Ferris2013-10-307-110/+105
| | | | | | | | | | | | Included in minor fix ups is the addition of a warning macro to replace all of the ALOGW calls. Fix a race where multiple threads could be attempting to unwind the threads of the current process at the same time. Bug: 8410085 Change-Id: I02a65dc778dde690e5f95fc8ff069a32d0832fd1
* Rewrite libbacktrace using C++.Christopher Ferris2013-10-2823-993/+2235
| | | | | | | | | | | | | | The old code was essentially trying to be C++ in C and was awkward. This change makes it all objects with a thin layer that C code can use. There is a C++ backtrace object that is not very useful, this code will replace it. This change also includes moving the backtrace test to a gtest, and adding coverage of all major functionality. Bug: 8410085 Change-Id: Iae0f1b09b3dd60395f71ed66010c1ea5cdd37841