platform_system_core/debuggerd
Jeff Brown 9524e4158f Add support for explicitly dumping native stacks.
This change modifies debuggerd so that it can be used to grab
the native stacks of a process that has hung and not just crashed.
Note that only the root user can do this (for now).

adb shell debuggerd <tid>

Then use logcat to find the tombstone file that was generated
which will have the native stacks of all threads in the
requested process.  The specified thread will be shown first
and will also appear in the main log.

Also made some minor tweaks to libcorkscrew so that we
could handle statically compiled executables in the future
if we compiled the library statically.

Improved the "wait_for_user_action" function to support
volume down as an alternative for devices that do not
have home keys.

Removed a mess of gotos.

Change-Id: Ic149653986b0c2f503c7f0e8b7cb1f3be7c84d1e
2011-10-25 17:00:17 -07:00
..
arm Add support for explicitly dumping native stacks. 2011-10-25 17:00:17 -07:00
x86 Use libcorkscrew in debuggerd. 2011-10-22 16:43:00 -07:00
Android.mk Use libcorkscrew in debuggerd. 2011-10-22 16:43:00 -07:00
crasher.c debuggerd: Reorganize to facilitate IA commit 2010-11-29 11:03:48 -08:00
debuggerd.c Add support for explicitly dumping native stacks. 2011-10-25 17:00:17 -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 Use libcorkscrew in debuggerd. 2011-10-22 16:43:00 -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
utility.c Use libcorkscrew in debuggerd. 2011-10-22 16:43:00 -07:00
utility.h Use libcorkscrew in debuggerd. 2011-10-22 16:43:00 -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