android_system_core/debuggerd
Jeff Brown 053b865412 Enhance native stack dumps.
Provides a new mechanism for dumpstate (while running as root)
to request that debuggerd dump the stacks of native processes that
we care about in bug reports.  In this mode, the backtrace
is formatted to look similar to a Dalvik backtrace.

Moved the tombstone generating code into a separate file to
make it easier to maintain.

Fixed a bug where sometimes the stack traces would be incomplete
because we were not waiting for each thread to stop after issuing
PTRACE_ATTACH, only the main thread.  So sometimes we were missing
traces for some threads.

Refactored the logging code to prevent accidentally writing data
to logcat when explicitly dumping a tombstone or backtrace from the
console.

Only root or system server can request to dump backtraces but
only root can dump tombstones.

Bug: 6615693
Change-Id: Ib3edcc16f9f3a687e414e3f2d250d9500566123b
2012-06-08 13:29:23 -07:00
..
arm Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
x86 Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
Android.mk Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
backtrace.c Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
backtrace.h Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
crasher.c debuggerd: Reorganize to facilitate IA commit 2010-11-29 11:03:48 -08:00
debuggerd.c Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
getevent.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
getevent.h Use libcorkscrew in debuggerd. 2011-10-22 16:43:00 -07:00
machine.h Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tombstone.c Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
tombstone.h Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
utility.c Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
utility.h Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
vfp-crasher.c Dump VFP registers and status word when native app crashes. 2009-12-17 12:53:06 -08:00
vfp.S Use arch flags instead of TARGET_ARCH_VARIANT, and add support for VFP_D16 2010-03-10 14:36:08 -08:00