am 014b8e03: am eb71bf7b: Merge change I01d9d733 into eclair

Merge commit '014b8e0372d85b88eb647be690ae31c6213628bd' into eclair-mr2-plus-aosp

* commit '014b8e0372d85b88eb647be690ae31c6213628bd':
  Add a host shell function to generate system_server stack traces
This commit is contained in:
Christopher Tate 2009-11-13 10:41:04 -08:00 committed by Android Git Automerger
commit 218c6d3464
1 changed files with 7 additions and 0 deletions

View File

@ -687,6 +687,13 @@ function pid()
fi
}
# systemstack - dump the current stack trace of all threads in the system process
# to the usual ANR traces file
function systemstack()
{
adb shell echo '""' '>>' /data/anr/traces.txt && adb shell chmod 776 /data/anr/traces.txt && adb shell kill -3 $(pid system_server)
}
function gdbclient()
{
local OUT_ROOT=$(get_abs_build_var PRODUCT_OUT)