summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-26Show the number of VMAs in the tombstone.oreo-mr1-vts-releaseoreo-mr1-devoreo-mr1-cts-devElliott Hughes
Tombstones (especially ones with lots of VMAs) are regularly truncated. We can at least show the number of VMAs, though, for anyone interested in knowing whether they got close to the default 64Ki limit. Bug: http://b/66911122 Bug: 64709603 (presubmit balking at the line above) Test: ran crasher, examined tombstone (cherry picked from commit 868d39a82fb2d9830d253409a1c28f0ae1fcac33) Change-Id: I286db66f28f132307d573dbe5164efc969dc6ddc
2017-07-31Mark the modules as VNDK-SP in Android.bpJustin Yun
As a VNDK-SP module, Android.bp must have 'vndk' tag as well as 'vendor_available: true'. The 'vndk' tag for VNDK-SP formated as follows: vndk: { enabled: true, support_system_process: true, }, VNDK-SP modules will be installed both in system/lib(64) as normal and in system/lib(64)/vndk-sp as a vendor variant. Bug: 63866913 Test: build and boot with BOARD_VNDK_VERSION=current Change-Id: I51fe0859f63ad58b7b91909e7d7d4206443228cd
2017-07-20Merge "Cleanup the libbacktrace interface a bit."Christopher Ferris
am: ce8a4c0c2e Change-Id: Iba1db66328410d9f03660ddea89c2689dd938ebf
2017-07-20Merge "Speed up StepIfSignalHandler path."Christopher Ferris
am: c6dd6e8a79 Change-Id: Ie0d80840db92a7be958979785b75d3bf4077b030
2017-07-20Merge "Cleanup the libbacktrace interface a bit."Christopher Ferris
2017-07-19Cleanup the libbacktrace interface a bit.Christopher Ferris
- Change the field name load_base to load_bias (which is what it really is). - Add a rel_pc field so that callers do not need to compute it themselves. - Remove the BacktraceMap::GetRelativePc() since nobody should need to compute this themselves. Bug: 23762183 Test: Compiles and unit tests pass (debuggerd, libbacktrace). Change-Id: I2cb579767120adf08c407a58f3c487ee3f2b45fc
2017-07-19Speed up StepIfSignalHandler path.Christopher Ferris
The StepIfSignalHandler code reads from the process memory object, which is currently the slowest way to read memory. Change the code to read from the elf memory object which will almost always be a memory mapped file and should be really fast. Also, move the tests for StepIfSignalHandler to its own file. Bug: 23762183 Test: Unit tests pass. Change-Id: I1100b50554e5ef736a87babd484f3f34e9071caa
2017-07-19Merge "Add signal handling to the register object."Christopher Ferris
am: 33913ebfb5 Change-Id: Icfaa2cca55a5aef4b48f58026a64395a267a517b
2017-07-18Add signal handling to the register object.Christopher Ferris
- Add the StepIfSignalHandler function to the Regs object that checks if the code is in a signal handler. - Add tests for new code, also add a test that unwinds through a signal handler. - Slight modification to Elf to fail if a bad machine type is encountered. Add tests for this. Bug: 23762183 Test: Ran unit tests. Change-Id: Idafa1105d00b91a9343d7464ac9ed1cb95830963
2017-07-15Merge "Make the library usable as a library."Christopher Ferris
am: ca94f65ea0 Change-Id: Ic1986a1399a61b9ba3455d7ff4d2365cded86194
2017-07-14Make the library usable as a library.Christopher Ferris
- Add namespace unwindstack everywhere so that it's easier for other code to use the library. - Move some of the header files into include/unwindstack so that they can be exposed. - Modify the headers so that only a limited number need to be exposed. - Update the tools to use the new headers. - Add a GetLoadBias() call on the Elf object. This prevents the need to get the interface object out of the Elf object. - Move the GetRelPc() call out of the Reg class, to the Elf class. It's not always the case that a Reg object will be around when you want to get a relative pc. The tests for this moved to ElfTest.cpp. Bug: 23762183 Test: Unit tests pass. Change-Id: Iac609dac1dd90ed83d1a1e24ff2579c96c023bc3
2017-07-13Merge "Move tools to separate directory."Christopher Ferris
am: d312abe7c0 Change-Id: I824bf8bb7598383c9ffa4da8b9ffc1c7ded04268
2017-07-13Move tools to separate directory.Christopher Ferris
Bug: 23762183 Test: Ran unit tests, ran new tools. Change-Id: Icc7cbb4102a68042f4683d6dd622f21bc5e74deb
2017-07-13Merge "A few cleanups."Christopher Ferris
am: 0c22c5646e Change-Id: I557f9348d53d6c64efba4e25c7fa46970ca5e7a0
2017-07-11A few cleanups.Christopher Ferris
- Cleanup the blueprint file a bit. - Fix the formatting in DwarfMemoryTest.cpp. - Fix the misnamed test MemoryBuffer.cpp to MemoryBufferTest.cpp. - Add a function to find the location of the test files so it's not necessary to run the test in the same directory as the test files. Bug: 23762183 Test: Builds and unit tests pass. Change-Id: I5666972bd01f14b8ee47c518f1840f8aeb7fd08b
2017-07-11Merge "Fix mips build."Baligh Uddin
am: bbcd3eb369 Change-Id: I6e5693234966ce8307376796fc9ceb6d2396a9b6
2017-07-11Merge "Fix mips build."Baligh Uddin
2017-07-11Fix mips build.Christopher Ferris
Don't build for mips, none of this is supported on mips. Bug: 23762183 Test: Mips build passes. Change-Id: Iba89466a7bc13856f8fcd59ca0708a30f417b6c6
2017-07-11Merge "Add full support for initing registers."Christopher Ferris
am: 63988ba676 Change-Id: Ib9bb8b413ddc0ad411506a5343817f2af5177b1e
2017-07-11Merge "Add full support for initing registers."Christopher Ferris
2017-07-11Add full support for initing registers.Christopher Ferris
- Fixes a few bugs in untested functionality. - Add tests for the way the register handling code is used. - Fix a few tests that were not reaping child processes. Bug: 23762183 Test: Ran unit tests on host (32 bit and 64 bit). Test: Ran unit tests on angler (32 bit and 64 bit). Change-Id: I573d6617b4f1561f6e8494d7213c52086d112d97
2017-07-07Merge "Add missing test files to compile."Christopher Ferris
am: 27ce28a874 Change-Id: Iaf2ebb9f3d39b2e99724b2bed0512b4f0bb3da3c
2017-07-07Merge "Add missing test files to compile."Christopher Ferris
2017-07-07Add missing test files to compile.Christopher Ferris
Bug: 23762183 Test: Ran unit tests. Change-Id: I8ac43517231d88c68c288800d8ed286daa57bce1
2017-07-07Merge "Init .gnu_debugdata in GetElf()."Christopher Ferris
am: dc219f5ca8 Change-Id: I485c6211dfef3b0468dcdd9cf8cc9347b2563231
2017-07-07Merge "Init .gnu_debugdata in GetElf()."Christopher Ferris
2017-07-05Merge "Backtrace: Add libziparchive dependency"Andreas Gampe
am: 69542edfbe Change-Id: I4514fe90b92486b2730bc453b8f4badfc9466002
2017-07-04Backtrace: Add libziparchive dependencyAndreas Gampe
Bug: 37342627 Test: m Change-Id: I2b4155bd11b315ff49eb9a69549e1ab3678d0b28
2017-06-30Init .gnu_debugdata in GetElf().Christopher Ferris
- Modify the tests to share some code for the generation of the elf data. - Move the gnu_debugdata files into a separate directory. - Add tests for GetElf(). - Move the CreateMemory() tests and the GetElf() tests into separate files. Bug: 23762183 Test: New unit tests pass. Change-Id: Ie3380296bb49753c2ac8801cfa11f93d6ff7121d
2017-06-29Merge "Remove assert, use CHECK instead."Christopher Ferris
am: 5d6d932a60 Change-Id: I84ca9a5e4a77c44a336245286c1d40d7fd4de003
2017-06-29Remove assert, use CHECK instead.Christopher Ferris
- Use the CHECK macro everywhere that assert was used. - Remove the _debug version of the tests and leave the CHECK macro so it's always checking in the code. Bug: 23762183 Test: Ran unit tests. Change-Id: Ie705eedae393d0e95bb9d99f852687a11881aef1
2017-06-29Merge "Fix mac build."Christopher Ferris
am: 51b4f48280 Change-Id: Ibd1f92670c0238f094616125be0080c8d5c0a50b
2017-06-28Fix mac build.Christopher Ferris
Test: Built. Change-Id: I455381d29045dc6dddfb2b77dcde312722c06ebf
2017-06-29Merge "Add .gnu_debugdata support."Christopher Ferris
am: 9302daeb1d Change-Id: Idfa6a275050fdf638229e8417f6bb0008fe13dc8
2017-06-28Add .gnu_debugdata support.Christopher Ferris
Update the unwind_info tool to dump all of the sections. Bug: 23762183 Test: Passes new unit tests. Change-Id: I8b223bc208a1a2ef06ed333e6d96943c8f273681
2017-06-23Merge "Add section parsing and function name handling." am: 62a17c6c4aChristopher Ferris
am: ee5c756d25 Change-Id: Iaf9dd25a0982916c6c2b06bf7ba618e1b2b452e1
2017-06-23Add section parsing and function name handling.Christopher Ferris
Add the code to parse the Elf section headers. Add the plumbing through of all the symbol handling code. Add tests for all of this new functionality. Bug: 23762183 Test: Pass new unit tests. Change-Id: Ie2d90cbb3d7653c53251dbcf34d9e5d241278377
2017-06-20Merge "Fix some memory leaks, potential errors." am: 2d9be1e5a1Christopher Ferris
am: 60d677147e Change-Id: I184799dd198d6469326f0c07dfb15a5323e9af69
2017-06-20Merge "Fix some memory leaks, potential errors."Christopher Ferris
2017-06-19Fix some memory leaks, potential errors.Christopher Ferris
Fix a couple of memory leaks in tests. Fix a potential case that length could be zero. Bug: 23762183 Test: Ran unit tests, then ran valgrind on unit tests and verified no leaks. Change-Id: I5f7602aa0204db0488a8e305250658cdb6e977d0
2017-06-19Merge "Add EH frame and debug frame support." am: 4bedb5c975Christopher Ferris
am: b1dc155338 Change-Id: I050d1046fd7605dc23d18219b3f7439d362225b2
2017-06-19Merge "Add EH frame and debug frame support."Christopher Ferris
2017-06-16Add EH frame and debug frame support.Christopher Ferris
Bug: 23762183 Test: Pass new unit tests. Change-Id: I1bfe900e068017ff31998f359bf98d4c5c9af2a5
2017-06-02Merge "Use demangle for function names." am: daa6602a86 am: 7f717dfc83oreo-dr1-devChristopher Ferris
am: 56b004c350 Change-Id: I04c96c44d6dd72ab7acd8d8f4a76534e0d35e31b
2017-06-02Use demangle for function names.Christopher Ferris
Bug: 62141808 Test: Ran unit tests, ran debuggerd -b on android processes. Change-Id: I40f341bcb2b35dd0a020d245d6b6f2ed2df65481
2017-06-02Merge "Change RegsTmpl to RegsImpl." am: b57f8e4b23 am: d34b599ec8Christopher Ferris
am: a32945f71a Change-Id: If5f8b33dbeff59115888b0964c22e21a65ad7d06
2017-06-02Merge "Change RegsTmpl to RegsImpl."Christopher Ferris
2017-06-01Change RegsTmpl to RegsImpl.Christopher Ferris
Also clang-format modified Regs.cpp slightly. Bug: 23762183 Test: Built and ran unit tests. Change-Id: I1c7c1b01974ee3f35059c42b8e2aef24d46c81a7
2017-06-02Merge "Add DwarfSection classes." am: 6a80c3e1a8 am: 5659a2b6feChristopher Ferris
am: 1fc59234bf Change-Id: Ic6ce7179ebd0b93bd1ef143b60a8d90b38ba4997
2017-06-01Add DwarfSection classes.Christopher Ferris
Bug: 23762183 Test: Ran new unit tests. Change-Id: Icca2a73c50d467718ba4ac41e1c8f541488620dd