summaryrefslogtreecommitdiffstats
path: root/debuggerd
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Debuggerd now outputs the offset of libc.so on the device as a ↵Brian Carlstrom2011-03-171-69/+0
| | | | | | | | | | | | separate item." This reverts commit c031a3b006129ca408eaade325a53a334daee3b2. Conflicts: debuggerd/debuggerd.c Change-Id: Ib37ae793bbffdb4a81837bc51171cc62b12abe7d
* Fix overflow prevention code in memory dump.Ben Cheng2011-02-241-19/+23
| | | | | | | | The delta between start and end pointers in memory dump has to be multiples of 4 or 16. Bug: 3486787 Change-Id: Ie34aa79ffb704ca647805dbc6a16f2c35adf849c
* debuggerd: Fix missing include.David 'Digit' Turner2011-02-013-5/+15
| | | | | | | | | | | | | | The structure user_vfp is incorrectly defined in bionic/libc/kernel/arch-arm/asm/ptrace.h at the moment, while it should be under bionic/libc/kernel/arch-arm/asm/user.h instead. Before moving its definition in the corresponding source files, we need to fix its users. It happens that debuggerd is the only one for now, so fix this by including <linux/user.h> instead (which will include <asm/user.h> and <asm/ptrace.h>). Also, make the debug output less chatty by specifying all symbols to be listed through XLOG2 instead of XLOG. Change-Id: I16e0fa700945d86efd44ee885a84ad609c0a9b58
* remove crasher and vfp-crasher from standard buildsBrian Swetland2011-01-231-2/+2
| | | | | | These are only for debuggerd testing. Change-Id: If2d2ff85e8c182d366cc251e9446ae7fdd094e55
* debuggerd: properly unblock signal handler.David 'Digit' Turner2011-01-211-1/+13
| | | | | | | | | | | | | This change ensures that debuggered properly releases the signal handler that invoked it after the PTRACE_ATTACH. The previous code simply did a close() of the file descriptor, but for some reason, this didn't always make the read() blocking the signal handler exit. Instead, the thread would stay blocked and never fault, preventing the generation of a useful stack trace. Change-Id: I6b0579041165a710d74ec1bece113ff7b828aed4
* Prevent rollover when dumping data around PC, SP, etc.Paul Eastham2010-12-141-0/+15
| | | | Change-Id: Ifc5f0e8eb5fed191c39f0878869e04b4d4f3b9ca
* Fix debuggerd (native crash dump).Mike Dodd2010-12-141-10/+19
| | | | | | | | | | | Change 44659e90f (6cc4923087 in AOSP) introduced walking both the symbol table and dynamic symbol table. The problem is that it was dereferencing values whether or not the two tables were both present, which could wind up reading from invalid memory. The read from a bad address would cause debuggerd itself to crash, which isn't handled. Change-Id: Ie936f660018b1980dee5b6ed669588db861f1a79
* am 44659e90: am d3f59eab: Merge "debuggerd: IA version"Jean-Baptiste Queru2010-12-1311-24/+285
|\ | | | | | | | | * commit '44659e90fe8df25c71195936eabe0cc9158c18a6': debuggerd: IA version
| * am d3f59eab: Merge "debuggerd: IA version"Jean-Baptiste Queru2010-12-1311-24/+285
| |\ | | | | | | | | | | | | * commit 'd3f59eab07d102b9506978aca9541dd62dcea919': debuggerd: IA version
| | * debuggerd: IA versionBruce Beare2010-11-2911-24/+285
| | | | | | | | | | | | | | | | | | Change-Id: I0c0d9c2d7e476b8d117aaf505a9480a47c0b5c05 Signed-off-by: Lei Li <lei.l.li@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | | Manual merge of 144773f9Jean-Baptiste Queru2010-12-1310-212/+296
|\| | | | | | | | | | | Change-Id: I0ac3f88ac85bbc604fdc151768da20e86318fb46
| * | am e382cc99: Merge "debuggerd: Reorganize to facilitate IA commit"Jean-Baptiste Queru2010-12-1310-212/+296
| |\| | | | | | | | | | | | | * commit 'e382cc999e48b3faabea7743ec8cec303b6005ba': debuggerd: Reorganize to facilitate IA commit
| | * debuggerd: Reorganize to facilitate IA commitBruce Beare2010-11-2910-212/+296
| | | | | | | | | | | | | | | Change-Id: I22dd02daf617672fc0a8ba7e396017c57f17e26e Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | | am 5c5ff87d: am 83c6b052: Print out the signal code along with signal number ↵Carl Shapiro2010-10-111-2/+48
|\| | | | | | | | | | | | | | | | | | | | | | | | | | and address. Merge commit '5c5ff87ded019537bbaf6383618ef2956aaa0407' * commit '5c5ff87ded019537bbaf6383618ef2956aaa0407': Print out the signal code along with signal number and address.
| * | am 83c6b052: Print out the signal code along with signal number and address.Carl Shapiro2010-10-101-2/+48
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '83c6b052918178033875e7ea54ca746cf7303f87' into gingerbread-plus-aosp * commit '83c6b052918178033875e7ea54ca746cf7303f87': Print out the signal code along with signal number and address.
| | * | Print out the signal code along with signal number and address.Carl Shapiro2010-10-081-2/+48
| | | | | | | | | | | | | | | | Change-Id: I60a8b13f706714e80b11bc517101715dfe1c73c1
* | | | Debuggerd now outputs the offset of libc.so on the device as a separate item.Hristo Bojinov2010-08-271-0/+69
|/ / / | | | | | | | | | Change-Id: I350c9ddb496a76d1ee897ae84893bf0e86abd45c
* | / am 89118032: Merge "Fix bug in debuggerd so it can successfully find the ↵Mike Dodd2010-07-161-1/+1
|\| | | |/ |/| | | | | | | | | | | | | exidx section in libraries. This should fix the bug where the exception stack wasn\'t being printed past the PC." into gingerbread Merge commit '891180320f0b08758d053a8562dfcd601ef846b0' into gingerbread-plus-aosp * commit '891180320f0b08758d053a8562dfcd601ef846b0': Fix bug in debuggerd so it can successfully find the exidx section in
| * Fix bug in debuggerd so it can successfully find the exidx section inMike Dodd2010-07-141-1/+1
| | | | | | | | | | | | | | libraries. This should fix the bug where the exception stack wasn't being printed past the PC. Change-Id: Ia69ebd49606ee34e329ba43c07b325660248e8fa
* | merge from open-source masterThe Android Open Source Project2010-06-106-8/+227
|\ \ | |/ |/| | | Change-Id: I50b7bc6faa6d0abd4998cae8fc7dda1e8fa49407
| * debuggerd: Show function names in tombstone backtracesMeng Hu2010-05-246-8/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enables debuggerd to provide backtraces with function names in tombstone files and log messages. It does this by reading the image file that the address is found in, and parsing the dynamic symbol table to try to extract the symbol corresponding to the given address. This works best when "-Wl,-export-dynamic" is added to the LDFLAGS of each library and executable, because this will cause all symbols to be added to the dynamic symbol table. If this flag is not present, it will still work, but it will only be able to identify functions which are part of the external API of the library/executable. Change-Id: I618baaff9ed9143b7d1a1f302224e9f21d2b0626
* | Use arch flags instead of TARGET_ARCH_VARIANT, and add support for VFP_D16Colin Cross2010-03-103-4/+27
| | | | | | | | Change-Id: I6007ff21076e92b04a17fb030472a9f8842f0315
* | Bug fix for pre-NEON platforms and enhancement for JIT debugging.Ben Cheng2010-01-281-18/+9
| | | | | | | | | | | | | | Use __ARM_NEON__ instead of __VFP_FP__ to detect the need to retrieve FP registers. Dump more code around PC and LR to facilitate JIT debugging.
* | Dump VFP registers and status word when native app crashes.Ben Cheng2009-12-174-2/+78
| | | | | | | | | | Bug: 2226399 Caveat: d0/d1 appear to be clobbered by ptrace. It will be tracked by a new bug.
* | Add missing symbol type directives.Doug Kwan2009-12-031-1/+3
| |
* | Minor tweaks to debuggerd.Andy McFadden2009-12-011-7/+8
|/ | | | | | | | | | Changed "process has crashed" message: - say ":5039" instead of ":port" so mouse-paste of command is trivial - removed trailing spaces, which consume log buffer to little effect - improved (I hope) the short explanation of what's going on and what the HOME key does Fixed typo ("ignorning").
* Print code around PC and LR in the inline log.Ben Cheng2009-09-281-105/+95
| | | | 8 more lines should provide more crucial information in weird cases.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0311-0/+2558
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0311-2558/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-174-9/+54
|
* Initial ContributionThe Android Open Source Project2008-10-2111-0/+2513