summaryrefslogtreecommitdiffstats
path: root/debuggerd
Commit message (Collapse)AuthorAgeFilesLines
* resolved conflicts for merge of 8791ee5c to masterChristopher Ferris2014-01-1310-1712/+1621
|\ | | | | | | Change-Id: I107bb055941809331c451c1d903f231f07a86ece
| * Next phase of the move, reformat use C++ features.Christopher Ferris2014-01-1310-1742/+1645
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am c37fec6d: am 715752cd: am a7083e0d: am 8387fc93: Merge "Move to C++ for ↵Christopher Ferris2014-01-119-14/+22
|\ \ | |/ | | | | | | | | | | debuggerd." * commit 'c37fec6d61dc2650a0a92983dc8d577f9e19520d': Move to C++ for debuggerd.
| * Move to C++ for debuggerd.Christopher Ferris2014-01-109-14/+22
| | | | | | | | | | | | | | | | | | This is part 1, only including the bare minimum changes because our diff tool doesn't easily show differences when a file moves. This also breaks it into a small chunk in case some other changes break things, as unlikely as I think that will be. Change-Id: Ib7a3e7a2cc1ac574d15b65fda23813ebcf5d31af
* | am 7fd0ea9b: am c555476e: am 1972955e: am 99775d87: Merge "Use the more ↵Elliott Hughes2014-01-101-1/+1
|\ \ | |/ | | | | | | | | | | portable <elf.h> instead of <sys/exec_elf.h>." * commit '7fd0ea9bb19dd0136706dab02454f9a642807a07': Use the more portable <elf.h> instead of <sys/exec_elf.h>.
| * Use the more portable <elf.h> instead of <sys/exec_elf.h>.Elliott Hughes2014-01-101-1/+1
| | | | | | | | | | Bug: 12476126 Change-Id: I08684987e867371d5537dadf1acb3408b420ad0c
* | resolved conflicts for merge of 72f204de to masterChristopher Ferris2014-01-081-4/+9
|\ \ | |/ | | | | Change-Id: I7345014d00c669aea5e27ea50b2ac658145b068b
| * Refactor to share map_info amongst threads.Christopher Ferris2014-01-081-4/+9
| | | | | | | | | | | | | | Allow the use of the same map info to be shared when getting information on multiple threads from the same pid. Change-Id: I2e460e20154a10f4894ae563331fb32179e4551f
* | debuggerd: Incorporate liblog reading APIMark Salyzyn2014-01-021-66/+34
|/ | | | Change-Id: Ic26e9dba3b45c827d122b03e34cc4a5bd48f7deb
* Switch ARM debuggerd over to <sys/user.h>.Elliott Hughes2013-11-261-8/+5
| | | | Change-Id: I106d4e80a2e819f1d47ca81893340f567bb8b4d9
* Merge commit '536dea9d61a032e64bbe584a97463c6638ead009' into HEADThe Android Open Source Project2013-11-223-5/+8
|\ | | | | | | Change-Id: I5c469a4b738629d99d721cad7ded02d6c35f56d5
| * am 9492b6e7: am 2de8102d: Merge "Fix bug in abort message processing."Christopher Ferris2013-10-091-1/+0
| |\ | | | | | | | | | | | | * commit '9492b6e72cef71422ba624e3cd11f07156cfb34a': Fix bug in abort message processing.
| * \ am fa135f5c: am 7dbe9660: Merge "Update debuggerd to use libbacktrace."Christopher Ferris2013-10-048-204/+172
| |\ \ | | | | | | | | | | | | | | | | * commit 'fa135f5ce95a8eff2ff51c03ad2e9d9b2a8b2274': Update debuggerd to use libbacktrace.
| * | | Move liblog headers to system/core/include/logColin Cross2013-07-243-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the liblog headers to log/ instead of cutils/ to complete the separation of libcutils and liblog. cutils/log.h still exists and includes log/log.h in order to support the many existing modules that use cutils/log.h. Change-Id: I2758c9f4aedcb809ca7ba8383d0f55041dd44345
| * | | am a570312a: am f265426f: am 596ee9ea: Merge "Improve the crasher ↵Elliott Hughes2013-07-161-2/+4
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stack-overflow command." * commit 'a570312a56938f6ebfcadc3ec9830ab8a2407654': Improve the crasher stack-overflow command.
| * | | | debuggerd: Ignore SIGPIPENick Kralevich2013-06-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The system server may prematurely close the connection to /data/system/ndebugsocket if it's not interested in the data from debuggerd. If it does so, we don't want to die due to a SIGPIPE. Change-Id: Iaef1f497bcd630144e6df6a06644a3293b85b6e0
* | | | | Switch MIPS over to <sys/user.h>.Elliott Hughes2013-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 11559337 Change-Id: I47ce51ec2d45d9cfdfbb6cccce93a66b0f02d967
* | | | | Remove x86 debuggerd dependencies on non-uapi headers and corkscrew.Elliott Hughes2013-11-141-14/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove a hack that claims to be "just like ARM", but which was different from the ARM and MIPS behavior. Change-Id: I9b16da9a56430998ded27d304ce52c7cc8bfedfc
* | | | | Rewrite libbacktrace using C++.Christopher Ferris2013-10-283-41/+43
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Fix bug in abort message processing.Christopher Ferris2013-10-091-1/+0
| |_|/ |/| | | | | | | | | | | Bug: 11156592 Change-Id: I4b82e7be5d7fccd167f6c52f78a5af3d3a553779
* | | Update debuggerd to use libbacktrace.Christopher Ferris2013-10-038-204/+172
| |/ |/| | | | | | | | | | | | | | | | | | | | | Remove all of the code in debuggerd that uses libcorkscrew directly and replace with libbacktrace. Also do a bit of refactoring to clean up some functions that were passing around variables that weren't used. Bug: 8410085 Change-Id: I27da4fbe3f12ce38a85b4432fc1119984c9c391b
* | am 596ee9ea: Merge "Improve the crasher stack-overflow command."Elliott Hughes2013-07-161-2/+4
|\ \ | |/ |/| | | | | * commit '596ee9ea8ae37b17fbdff91508f55250d528f1d2': Improve the crasher stack-overflow command.
| * Improve the crasher stack-overflow command.Elliott Hughes2013-07-151-2/+4
| | | | | | | | | | | | Runs a lot quicker, with no intermediate noise. Change-Id: Icd911ff305da2e0889029dc78d5c2b39f32111c5
* | am 6ef0dfec: Merge "Add a new test to crasher to upset dlmalloc."Elliott Hughes2013-06-121-25/+34
|\ \ | |/ | | | | | | * commit '6ef0dfecca9fde5abe15ceea30e0615897d7b374': Add a new test to crasher to upset dlmalloc.
| * Add a new test to crasher to upset dlmalloc.Elliott Hughes2013-06-121-25/+34
| | | | | | | | | | | | | | | | We should also add a test for heap corruption, but I failed to come up with a kind of corruption that dlmalloc actually detects (rather than just crashing accidentally). Change-Id: I7457e732729635b171ffc44517c3de71f55608e6
* | am cb6a842c: Merge "Add a stack overflow test to crasher, and document all ↵Elliott Hughes2013-04-231-27/+38
|\ \ | |/ | | | | | | | | | | the options." * commit 'cb6a842c6e2048e6cd3c5a2d478113347c75d7aa': Add a stack overflow test to crasher, and document all the options.
| * Add a stack overflow test to crasher, and document all the options.Elliott Hughes2013-04-231-27/+38
| | | | | | | | Change-Id: Iebe80c24ef43f08d258881e7847516d414436931
| * Modify debuggerd to cope with the abort message.Elliott Hughes2013-04-043-11/+53
| | | | | | | | | | Bug: 8531731 Change-Id: I416ec1da38a8a1b0d0a582ccd7c8aaa681ed4a29
* | Fix regression: log mem maps around native fault addressChristopher Tate2013-04-181-10/+11
| | | | | | | | | | | | | | | | | | | | | | Restore the logging of the mem maps around the fault address along with the rest of the faulting thread's information. (It was still being written to the tombstone file, but the logging got dropped on the floor in the refactoring around AM report integration). Bug 8654694 Change-Id: Id8851fa765dfe6b6ce41ccfc39e85eaac0acc629
* | Add liblogYing Wang2013-04-091-2/+3
| | | | | | | | | | Bug: 8580410 Change-Id: Iab3a9b4307f207c14a04a922cc7350c54e60e9ad
* | Uploaded native crash dumps do not include memory contentsChristopher Tate2013-04-057-98/+114
| | | | | | | | | | | | | | | | | | Also fixed the LOG() macro to actually write to the log again, tracking the change in _LOG() argument semantics. Bug 8322568 Change-Id: I79330c85c26d3ffb734315b6d0f2c0bb80bd234a
* | Modify debuggerd to cope with the abort message.Elliott Hughes2013-04-053-11/+53
| | | | | | | | | | | | | | (cherry picked from commit 707b8bbe1800dbebd932f54e86347563ee86c36e) Bug: 8531731 Change-Id: I2785a07ef83e085f338d3094f9972de23117807c
* | debuggerd now notifies the Activity Manager about native crashesChristopher Tate2013-04-016-7/+106
| | | | | | | | | | | | | | | | | | | | | | The Activity Manager sets up a permission-guarded domain socket, which debuggerd connects to when a crash happens. If this is successful, the daemon then mirrors the logged crash report to that socket, then closes it. Bug 8322568 Change-Id: Ife0c772a628ef82e8457094e511ce1edbfe57460
* | am 3e77b752: am 0b535558: Merge "Unwinding implementation via eh_frame ↵Elliott Hughes2013-03-141-0/+16
|\ \ | |/ | | | | | | | | | | sections for x86" * commit '3e77b7521ba96fd1ff6fed0e019aff5f46a31428': Unwinding implementation via eh_frame sections for x86
| * Unwinding implementation via eh_frame sections for x86Pavel Chupin2013-03-141-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backtracing through eh_frame section is more effective allowing to reuse ebp register for other purposes within routine. GCC with turned on optimizations (-O1 and above) implicitly defines -fomit-frame-pointer anyway. eh_frame sections are generated by default with GCC on any optimization level. This change implements remote unwinding (separate process unwinding). Local unwinding is already implemented through _Unwind_Backtrace call which is implemented in libgcc. Change-Id: I1aea1ecd19c21710f9cf5f05dc272fc51b67b7aa Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* | am 910b7a8b: am 17361134: Merge "Add a "smash-stack" option to crasher."Elliott Hughes2013-02-142-0/+14
|\ \ | |/ | | | | | | | | # Via Android Git Automerger (1) and others * commit '910b7a8b88b29ee16c6014630b450dda56c5d578': Add a "smash-stack" option to crasher.
| * Add a "smash-stack" option to crasher.Elliott Hughes2013-02-142-0/+14
| | | | | | | | | | | | | | | | bionic's __stack_chk_fail was preventing debuggerd from dumping stacks, which was not helpful. Bug: 2487269 Change-Id: Idba2a274037b960dfb2ac1c21686323268c4b372
* | am a82985b6: am 7cd45071: Merge "Include page protections in the debuggerd ↵Elliott Hughes2013-01-031-15/+15
|\ \ | |/ | | | | | | | | | | map output." * commit 'a82985b6686f8b47119193fee2f804376a90125b': Include page protections in the debuggerd map output.
| * Include page protections in the debuggerd map output.Elliott Hughes2013-01-031-15/+15
| | | | | | | | | | Bug: 7941716 Change-Id: I3bf475425c628c06f7799340c8a6132aab741742
* | am 3de7fe9f: am 5fb042dd: Merge "Expand crasher with a "thread-" prefix to ↵Elliott Hughes2012-12-101-11/+34
|\ \ | |/ | | | | | | | | | | crash on another thread." * commit '3de7fe9f40489db691407d6ebfd77cfde23d8049': Expand crasher with a "thread-" prefix to crash on another thread.
| * Expand crasher with a "thread-" prefix to crash on another thread.Elliott Hughes2012-12-101-11/+34
| | | | | | | | | | | | | | | | So "thread-nostack" runs the "nostack" code on a new thread, and "thread-abort" runs the "abort" code on a new thread, and so on. Bug: http://code.google.com/p/android/issues/detail?id=16672 Change-Id: I026a0e43eea147f1a7a74243846954599bcf4238
* | am 435c223d: am 5144fa28: Merge "Add missing signal codes to get_sigcode."Elliott Hughes2012-12-101-0/+25
|\ \ | |/ | | | | | | * commit '435c223d483c5e408fdbd7b6177e881ae445a24b': Add missing signal codes to get_sigcode.
| * Add missing signal codes to get_sigcode.Elliott Hughes2012-12-101-0/+25
| | | | | | | | | | | | | | The only common one we were missing is SI_TKILL, but we've had the full set on the dalvik-dev branch for some time now. Change-Id: I7cf52d352b8624e0adb17a2ed440e7a10f490dfd
* | Show pid+uid in certain failuresAndy McFadden2012-12-101-4/+6
|/ | | | | | | | | | If somebody sends debuggerd bad data, it logs a complaint but doesn't give any indication of the source. Now we show the pid and uid we get from SO_PEERCRED. Bug 7704699 Change-Id: I2738eb972932cc868ad969b60e16dd0b623212a1
* am a6fb0e05: Merge "Fix debuggerd\'s use of readdir_r(3)."Elliott Hughes2012-10-302-7/+5
|\ | | | | | | | | * commit 'a6fb0e05aa95995445c6f2b65f07db26bdbfd46c': Fix debuggerd's use of readdir_r(3).
| * Fix debuggerd's use of readdir_r(3).Elliott Hughes2012-10-262-7/+5
| | | | | | | | Change-Id: I1b178af054cefebfb774320e4b4699d6dc8bbb01
* | am 7b88a90d: Merge "Remove HAVE_SELINUX guards"Kenny Root2012-10-172-11/+5
|\ \ | |/ | | | | | | * commit '7b88a90da2a27e347fc16c14fa577f4ae1ef07fd': Remove HAVE_SELINUX guards
| * Remove HAVE_SELINUX guardsKenny Root2012-10-162-11/+5
| | | | | | | | Change-Id: I8272c573b3c5dc663203bafab68fad5e94d89364
* | Dump 256 bytes per chunk pointed by general-purpose registers.Ben Cheng2012-09-241-1/+5
| | | | | | | | | | Bug: 7216522 Change-Id: Iddcec8399b00ad411be6863dd866a3f74377ba03
* | Print the revision number in the tombstone file.Ben Cheng2012-09-191-0/+10
|/ | | | | Bug: 7168261 Change-Id: Icb412760d018e4bbb1a5d742ed7d484d5cf6b470