summaryrefslogtreecommitdiffstats
path: root/libbacktrace/Android.mk
Commit message (Collapse)AuthorAgeFilesLines
* Convert the rest of libbacktrace to Android.bpColin Cross2016-12-151-121/+0
| | | | | | | | | | | See build/soong/README.md for more information. Reapplies I61c49fb62fdeafb66db25b8f97621239b8fd6e75 after fixing an unused parameter warning on mips builds. Test: mma -j Test: backtrace_test Change-Id: I6dc353a274cafcdb05ee866b41c3c2731612941c
* Revert "Convert the rest of libbacktrace to Android.bp"Colin Cross2016-12-151-0/+121
| | | | | | | | This reverts commit 9a3603622ff95a602a1ce018ada59cb52d2539f4. Broke the mips build with an unused parameter warning Change-Id: If36964ea189b58a9825de8904f1cf49010548b59
* Convert the rest of libbacktrace to Android.bpColin Cross2016-12-141-121/+0
| | | | | | | | See build/soong/README.md for more information. Test: mma -j Test: backtrace_test Change-Id: I61c49fb62fdeafb66db25b8f97621239b8fd6e75
* libbacktrace_offline: support .ARM.exidx.Yabin Cui2016-12-071-2/+0
| | | | | | | | | | | | | | | | 1. Read .ARM.exidx and .ARM.extab, provides these data to libunwind through AccessMem. 2. In FindProcInfo, search .ARM.exidx for the idx entry of function containing ip. 3. Add structures to store .ARM.exidx info in DebugFrameInfo, and clean up the structure. 4. Add tests to test each unwind information (.eh_frame, .debug_frame, .gnu_debugdata, .ARM.exidx) separately. Bug: http://b/30974693 Test: run backtrace_test. Test: run simpleperf runtest.py. Change-Id: I9377a54379158bd35860efcf0e011423be7350d4
* Statically link LLVM libraries into backtrace_testPirama Arumuga Nainar2016-11-301-35/+10
| | | | | | | | | | | | | | | Bug: http://b/28866258 Remove dependency of backtrace_test on libLLVM. Also clean up specification for libbacktrace_offline module. Since it is a static library now, dependencies are only needed to automatically include necessary headers. Test: 32-bit and 64-bit backtrace_test passes on host and on Angler. mma in system/extras/simpleperf, cts/tests/tests/simpleperf m test-art-host Change-Id: I76b0db14d067fa7b140a99edd237370ac04fe873
* Rely on the platform -std default.Elliott Hughes2016-10-101-6/+0
| | | | | | Bug: http://b/32019064 Test: builds Change-Id: I18a1d816d63b64601485045070851f32d44e85eb
* Replace libziparchive-host with libziparchiveColin Cross2016-08-261-2/+2
| | | | | | | libziparchive-host is no longer necessary, and mixing libziparchive-host and libziparchive can cause ODR violations. Change-Id: I27b2cc9974000ee7bf1d1ac15fd7b069862d9b01
* Convert libbacktrace, libutils to SoongDan Willemsen2016-07-121-86/+0
| | | | Change-Id: I8b578f671f92246aca61f98937d75a60b56bc5c6
* Remove invalid uses of -l and -IDan Willemsen2016-06-011-1/+3
| | | | | | | | | | | | | LOCAL_LDLIBS should only be used with -l flags for NDK and some host libraries. Other uses should use LOCAL_SHARED_LIBRARIES. LOCAL_LDFLAGS should not contain -l entries, they should be in LOCAL_LDLIBS instead. LOCAL_CFLAGS should not contain -I entries, those should use LOCAL_C_INCLUDES instead. Change-Id: Ic901aa14651572ac682166becd4f0cd86baecc34
* libbacktrace: only build libbacktrace_offline static library.Yabin Cui2016-04-141-35/+31
| | | | | | | | | As device may not have libbacktrace_offline shared library, simpleperf no longer rely on it. So there is no reason to keep libbacktrace_offline shared library. Bug: 28152982 Change-Id: If8e31b1434646dbbfed60264eb25f034bc5d6946
* libbacktrace_offline: support unwinding of shared libraries in apk file.Yabin Cui2016-03-261-7/+22
| | | | | Bug: 26962895 Change-Id: I009080f26e7323247c3ab24eea614eec4432ca6a
* libbacktrace: support building static libraries on target.Yabin Cui2016-02-101-2/+29
| | | | | | Bug: 27125711 Change-Id: I28a49e3e128fa4291815a54cf942452bd1f9f756
* Fix for host simpleperf 'gettid' unsat.Than McIntosh2016-02-011-0/+3
| | | | | Bug: 26900419 Change-Id: Ifefd017f4b62ecfb2521bd1c38dbb3b09054f205
* Put BacktraceOffline code into a separate library.Christopher Ferris2016-01-251-17/+32
| | | | | | | | BacktraceOffline is the only code that uses libLLVM. Create a new shared library, backtrace_offline.so, that references this so that including libbacktrace.so doesn't wind up pulling in libLLVM. Change-Id: I90c502d833f6c464c3810dffde52a0c6da241cce
* Fix libbacktrace host build.Yabin Cui2015-12-071-0/+1
| | | | | | | On host build, libbacktrace relies on libcutils to provide gettid() function. Change-Id: Iad83384ea699ca024b71b73cef26755287c9e6fe
* Revert "Revert "Revert "Revert "Add BacktraceOffline for offline ↵Yabin Cui2015-09-221-0/+25
| | | | | | | | backtracing."""" This reverts commit 94ece83270deca76c69f5755f8c0ff5c859341fd. Change-Id: Ie06465c89a5fc115517130f9f2904cc855973155
* Revert "Revert "Revert "Add BacktraceOffline for offline backtracing."""Yabin Cui2015-09-221-25/+0
| | | | | | This reverts commit 0a411c934a81e5c77a27ef5b69d391038f36e969. Change-Id: Ic1824afac6c32f1087b66de9d6368a561f235d13
* Revert "Revert "Add BacktraceOffline for offline backtracing.""Yabin Cui2015-09-211-0/+25
| | | | | | | | | | | This reverts commit ab5e583327e4dfd9f7c38ab6ed4c4714508ce544. And statically link llvm libraries on host to remove dependency on 32-bit llvm shared library which is not included in the prebuilt. Bug: 22229391 Change-Id: I8210687655ee1809fd820ab2a6ca5dfaf3f9096d
* Revert "Add BacktraceOffline for offline backtracing."Yabin Cui2015-09-171-10/+0
| | | | | | | | Using llvm makes libbacktrace stops building for 32 bit on linux host x86_64. This reverts commit c9c6b6ee7735f014771d81615c0278b53d14f61c. Change-Id: Ieb807db881d7bb3132cd09e25fd08c28766ca0a8
* Add BacktraceOffline for offline backtracing.Yabin Cui2015-09-161-0/+10
| | | | | | | It is used by simpeleprf for stack unwinding. Bug: 22229391 Change-Id: I26d698610ccdc9545da837bc5a8a9ec787f27a6b
* Add static versions for libbacktrace and libnativebridge. Bug fixes.Calin Juravle2015-07-021-0/+8
| | | | Change-Id: Ic68ac15b2676e4f475330c8e7bb34e0d48783686
* Add tests for elf unwinding in memory.Christopher Ferris2015-05-121-4/+6
| | | | | Bug: 19517541 Change-Id: Ib42360a82934ff7103e2ccb64c1105c59aa3fdea
* Remove libbacktrace dependency on libcutilsColin Cross2015-04-301-9/+1
| | | | | | libbacktrace doesn't use libcutils, it uses liblog. Change-Id: Ie1328b18a9f189c081891ba3b9a28487e830e579
* Remove libunwind-ptrace dependency.Christopher Ferris2015-04-151-1/+0
| | | | Change-Id: Iae4a73546f672c208ffe1b224e8d9a9e693f95f0
* Merge "Refactor the code."Christopher Ferris2015-03-311-10/+13
|\
| * Refactor the code.Christopher Ferris2015-03-311-10/+13
| | | | | | | | | | | | | | | | 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
* | Add -Wno-inline-asm to Clang flags.Stephen Hines2015-03-311-0/+4
|/ | | | | | | | The latest clang (r230699) does not allow SP/PC to be declared in inline asm lists. This is a problem for libraries that are attempting to save all register state. Change-Id: I1ce80530f8be85fd74e949d0c65b60080e0aaf2a
* Remove link to gccdemangle.Christopher Ferris2015-02-051-1/+0
| | | | | Bug: 18930951 Change-Id: Ib7fd332b6e02241c0676ef33d2fa210a72efe1b1
* Cleanup libbacktrace Android.mkTrevor Drake2014-12-121-3/+0
| | | | | | Removed unnecessary libbacktrace_c_includes variable Change-Id: I2ef29dc9810f7d9a7dcf5c232e9e85d2fc2fd5e8
* Convert futex to cond wait.Christopher Ferris2014-11-141-0/+4
| | | | | | | | | | | | | Switch to the better supported pthread_cond to handle the Wait/Wake functions. Also, increase the number of simultaneous threads in the thread tests. Bug: 18381207 (cherry picked from commit db44538387b08f367fc2419653639866f4c2fbd6) Change-Id: Id326a7a7b92cb61573def3f761597c40f3ef2f4b
* Add LOCAL_MULTILIB := both to Darwin libbacktrace.Dan Albert2014-11-131-0/+2
| | | | | | | This was previously set for libbacktrace_libc++, but apparently never was for libbacktrace. Change-Id: I85dc44b356710c6367f5cea3bc0a4d6c817ca202
* Remove the stlport linked libbacktrace.Dan Albert2014-11-111-65/+1
| | | | | | | Rename the libc++ linked libbacktrace to the normal name. Bug: 15193147 Change-Id: I75caf1ee527e3703825e0db757497fb8fa3dd122
* 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-171-0/+2
| | | | 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
* Fix unbundled branchesDan Albert2014-05-191-0/+3
| | | | Change-Id: Ic8a58a6cf55221ec361bbb80c7c9636fe1349943
* Adds libc++ versions of libbacktraceDan Albert2014-05-191-0/+41
| | | | Change-Id: I4a1ce30e7c2166ac1846cc90de0252beee542ee6
* Merge "Rewrite unwind thread handling."Christopher Ferris2014-05-091-0/+3
|\
| * Rewrite unwind thread handling.Christopher Ferris2014-05-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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-251-22/+0
| | | | | | All unwinding is now done through libunwind. Change-Id: I93ba6f5bd5ad41eeb5f6a93113b7894f842cc8e0
* Remove the arm64 special case.Christopher Ferris2014-04-211-7/+1
| | | | | | The stack-protector option is handled by the global makefiles. Change-Id: I99c4a1624e72ad91ac10eef27c0e3758fe9af8ba
* Create an UnwindMapLocal object.Christopher Ferris2014-04-031-0/+2
| | | | | | | | | | | | | 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
* Refactor makefile.Christopher Ferris2014-01-311-220/+103
| | | | | | | With this change allow the creation of host backtrace libraries using libunwind. Change-Id: Ie48bb36cf0d2eccf94cb8ff516d829d8032f11f2
* LP64: Enable debuggerd/libbacktrace/libunwind.Pavel Chupin2014-01-301-1/+1
| | | | | 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>
* Re-enable libunwind for arm.Christopher Ferris2014-01-281-2/+3
| | | | | | | | | | 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-271-2/+1
| | | | Change-Id: Ica021aa134388fe7069a5de5df8036ecf0d570f8