summaryrefslogtreecommitdiffstats
path: root/debuggerd
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing debuggerd header output.Brigid Smith2014-06-231-3/+2
| | | | | | PID and TID output line was missing. Change-Id: I609af5727bc22ea0b97f3975ddb3cf0102910bc2
* Maps output now marks the fault address location.Brigid Smith2014-06-201-4/+13
| | | | | | | | If the fault address is not within a mapped region, it logs an error message after the output. Otherwise, it prefixes the location of the fault address with "--->" to make it easier to locate. Change-Id: I330adaade4402ffeb09f1a6d34a944c2f054d06d
* Fix debuggerd "format '%p'" build breakage.Elliott Hughes2014-06-191-3/+1
| | | | Change-Id: I589d44485e55c23d1f1a6edfa8310a90cac2429e
* Updated non-ARM archs to reflect logging changes.Brigid Smith2014-06-194-6/+6
| | | | Change-Id: I0af865881c19ea4a57ec1aa9455bc32c08a60d75
* Removed log.quiet and log = NULL cases from debuggerd.Brigid Smith2014-06-196-81/+69
| | | | | | | | | Now the functionality implemented by these semi-confusing cases has been replaced with the same logtype enum behavior that is easier to understand, and cases that used log-looking behavior to print to logcat (when log = NULL) now use the more transparent ALOGE/ALOGD functions. Change-Id: I7e38f2d4ca74a828df4d2266b3ea34edd3c6f5bb
* Changed maps output in debuggerd.Brigid Smith2014-06-172-29/+13
| | | | | | | | | | | Now the map output is only sent to the tombstone, and the entire contents of /prod/$PID/maps is logged, not just 3 lines. Additionally, crasher now supports "crasher SIGSEGV-non-null", which attempts to write to a dereferenced function address, causing a SIGSEGV at a non-zero address. This new crasher mode can be used to test the new maps output. Bug: 15343662 Change-Id: I796d92e8352a6b9714bbbfe96f3143c56565ef2f
* Fixed logcat debug output issue.Brigid Smith2014-06-171-2/+4
| | | | Change-Id: Ibeb048b683ec11b05af23371e5e4b17cdd50fea0
* Changing how debuggerd filters log messages to different locations.Brigid Smith2014-06-1612-261/+263
| | | | | | | | | | | | | The system by which debuggerd filters its output to different locations is now based on an enum called logtype with easy to understand categories for log messages (like THREAD, MEMORY, etc.) instead of the old, fairly esoteric scope_flags variable. Now much of the output that previously went to logcat does not show up on the screen, but all output can be found in the tombstone file. In addition, the tombstone's location is now printed so it can be located easily. Bug: 15341747 Change-Id: Ia2f2051d1dfdea934d0e6ed220f24345e35ba6a2
* Merge "Adding ABI output to debuggerd tombstones."Elliott Hughes2014-06-041-11/+21
|\
| * Adding ABI output to debuggerd tombstones.Brigid Smith2014-06-041-11/+21
| | | | | | | | | | Bug: 15084471 Change-Id: If9fb260a3403e86f80928f2f5f79331fc0936030
* | Fix x86 and x86_64 builds.Christopher Ferris2014-06-032-2/+2
| | | | | | | | Change-Id: I1ee9117843aff2abe4067f288b8496d4bfc78c9e
* | Merge "[MIPS64] Build debuggerd for mips64"Elliott Hughes2014-06-031-0/+2
|\ \
| * | [MIPS64] Build debuggerd for mips64Duane Sand2014-06-031-0/+2
| |/ | | | | | | Change-Id: I361e9668baa218fc01e723c2df1a34ca6329cf47
* | Clean up the debuggerd makefile.Elliott Hughes2014-06-031-16/+15
|/ | | | | | | In particular, turn on -Wunused, which is globally off by default thanks to build/core/config.mk. Change-Id: Iba3ee1c0726f43eced972a53959f0e1cd97190c9
* logd: logcat: debuggerd: audit logs to events and mainMark Salyzyn2014-05-271-1/+0
| | | | | | | | | | | - auditd spawn log copy to events and main - logcat delete events as one of the default logs - debuggerd do not collect events. - squish multiple spaces - switch from strcpy to memmove for overlapping buffers BUG: 14626551 Change-Id: I89b30273ce931ed2b25a53ea9be48e77f4c1bbf4
* Fix register dump and back trace after a crash.Douglas Leung2014-05-211-2/+14
| | | | | Change-Id: Ie5f6624b9dcf81d84769b9cdaf9d8a301c8826f7 Signed-off-by: Douglas Leung <douglas@mips.com>
* Teach debuggerd the name of SIGTRAP.Elliott Hughes2014-05-162-13/+12
| | | | | | | Also add SIGTRAP to the list of signals we don't want to double fault on. Bug: 15024256 Change-Id: I23ab80800563c007fcd3e42527329fedf762f0c8
* Remove the broken LED flashing code from debuggerd.Elliott Hughes2014-05-161-63/+2
| | | | Change-Id: I4d0cbe14daa90ac5f91ce4597584448ee3c65dda
* Output correct gdbserver instructions from debuggerd.Elliott Hughes2014-05-161-14/+34
| | | | | Bug: 15021938 Change-Id: I2df433d939f5f83ed2a2a30af357b83e4d8e5331
* Merge "Add SIGTRAP support to crasher and debuggerd."Elliott Hughes2014-05-172-2/+7
|\
| * Add SIGTRAP support to crasher and debuggerd.Elliott Hughes2014-05-162-2/+7
| | | | | | | | | | Bug: 15024256 Change-Id: I3f34993fcfd9799306852b0a2195db468370be6e
* | logd: logcat: debuggerd: auditd logs to eventsMark Salyzyn2014-05-151-9/+27
|/ | | | | | | | | | | - auditd switch to recording logs to events log id - logcat add events as one of the default logs - debuggerd collect events log as well. ToDo: debuggerd & bugreport collect intermixed logs. BUG: 14626551 Change-Id: I958f0e729b7596748be57488a38824db5645be7b
* Fix mips debuggerd <corkscrew/ptrace.h> build breakage.Elliott Hughes2014-05-071-4/+2
| | | | | | | The uapi headers have everything we need, and the corkscrew header files have been removed. Change-Id: I274b44463638112f1ab290926094c094c9253586
* Log stack even if tombstone cannot be created.Christopher Ferris2014-05-051-10/+17
| | | | | Bug: 14498701 Change-Id: I62c271bef2f73166eeb91d3fa3ce1e1b724a081f
* debuggerd: turn on -WerrorMark Salyzyn2014-05-023-12/+10
| | | | | | - Deal with some -Wunused / -Wunused-variable issues Change-Id: I39849fe30170f69d1cab7d4ad2629b3a49e14ee7
* Use the si_code value bionic passes us.Elliott Hughes2014-04-254-40/+62
| | | | | | | | | Bionic needs to re-raise various signals, which means the si_code debuggerd sees has been clobbered. If bionic sends us the original si_code value, we can use that instead of the one we see when the ptrace the crashed process' siginfo. Change-Id: If116a6bc667d55a6fb39b74f96673292af4e4c8c
* Add missing si_code values to debuggerd.Elliott Hughes2014-04-241-6/+10
| | | | | | Also add static_asserts so we'll be notified if any more new ones show up. Change-Id: I3a502dd4da35354e1ac65865191d31ccdacef298
* Improve liblog's fatal logging.Elliott Hughes2014-04-241-21/+28
| | | | | | | This makes LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF as good as regular assert(3). Change-Id: I0666684d30cae7baf23c64b33d35c1e43f81acf0
* logd: liblog: logcat: debuggerd: Add LOG_ID_CRASHMark Salyzyn2014-04-161-1/+2
| | | | Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
* debuggerd: use LOCAL_MULTILIBColin Cross2014-03-262-92/+75
| | | | | | | Use LOCAL_MULTILIB to build multiple versions of executables instead of manually creating two build rules. Change-Id: I1a993ff7b5f527a88735f46eec9822bb97d16490
* build debuggerd and debuggerd64 on 64-bit architecturesColin Cross2014-02-122-50/+89
| | | | Change-Id: I1518d45ae0c5e0fed31d071fdaf19a67bad1bdfc
* Merge "Convert all selinux_android_restorecon and _setfilecon calls to new API."Nick Kralevich2014-02-121-1/+1
|\
| * Convert all selinux_android_restorecon and _setfilecon calls to new API.Stephen Smalley2014-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | libselinux selinux_android_restorecon API is changing to the more general interface with flags and dropping the older variants. Also get rid of the old, no longer used selinux_android_setfilecon API and rename selinux_android_setfilecon2 to it as it is the only API in use. Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | Merge "Use stat structure to keep oldest mtime."Christopher Ferris2014-02-081-20/+11
|\ \
| * | Use stat structure to keep oldest mtime.Christopher Ferris2014-02-071-20/+11
| |/ | | | | | | Change-Id: If9496127db28d2dcd09bc5b3144632a43afb8d55
* | Use socklen_t instead of int in debuggerd.Elliott Hughes2014-02-071-11/+9
|/ | | | | | Also other trivial C++ cleanup. Change-Id: I9b5278c5205e0ea4f9dcbbe3e7b99921dd2436dc
* system/core LP64 cleanup.Elliott Hughes2014-02-051-4/+4
| | | | | | | Fixes -Wint-to-pointer and -Wpointer-to-int warnings, plus various -Wformat warnings. Change-Id: I6c5eea6b4273d82d28b8e5d2925f3e5457511b17
* Fix debuggerd's symbol offset output.Elliott Hughes2014-01-311-2/+2
| | | | | | | | | | Before: 00007fff33e489d8 00007ff286e4ad94 /system/lib64/libc.so (__libc_init+54u) After: 00007fff45c6c158 00007f61bc36fd94 /system/lib64/libc.so (__libc_init+84) Change-Id: I36796c99843a41583824a96793a5a4c81ddb666e
* LP64 should have debuggerd and debuggerd64.Elliott Hughes2014-01-311-1/+5
| | | | Change-Id: I4e39c200e6867bb9a5bbcfec1c449b8864028feb
* Remove dead code that looked like part of debuggerd.Elliott Hughes2014-01-311-13/+0
| | | | | | | Note that these were two different functions. The definition was unused, and the declaration was undefined. Change-Id: I2edd10a0ab9422cd5252bdb9ccdd726dc5fad531
* AArch64: Port debuggerdKévin PETIT2014-01-307-7/+220
| | | | | Change-Id: Ib18f76f375a1d70c84e0a09d221e17ac43144b96 Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
* LP64: Enable debuggerd/libbacktrace/libunwind.Pavel Chupin2014-01-306-66/+106
| | | | | Change-Id: I2e432839f86c33c2adbaac8cc12ca8961956044b Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* debuggerd: a few generic improvementsKévin PETIT2014-01-305-129/+104
| | | | | | | | | | This one makes dump_memory reasonably architecture-agnostic so it is possible to share the code between architectures. It also includes a few small improvements in tombstone.cpp. Change-Id: Ib8a9599bfa420b41e80207988e87aee1b9d79541 Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
* Merge "Re-enable libunwind for arm."Christopher Ferris2014-01-281-9/+3
|\
| * Re-enable libunwind for arm.Christopher Ferris2014-01-281-9/+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
* | debuggerd: Support newline split in log messagesMark Salyzyn2014-01-271-10/+18
| | | | | | | | | | | | (cherry picked from commit 706fad2b5fd96fb9b705795af1c11ef44d8a8fe9) Change-Id: I2c19f12ef027ab1e1455ce78824537da1b03edcd
* | debuggerd: Incorporate liblog reading APIMark Salyzyn2014-01-271-59/+38
|/ | | | | | (cherry picked from commit a63f927ce10817ce637dd52ba2f4ac763ce4fc61) Change-Id: Ic26e9dba3b45c827d122b03e34cc4a5bd48f7deb
* Rewrite libbacktrace to be all C++.Christopher Ferris2014-01-161-38/+40
| | | | | | | | | | | | | 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
* 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
* 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