X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=envsetup.sh;h=6dc2aa943bfd047797526d72567785aa63dc295f;hb=2779fa7d9fea6f61392135a231e69a3e9b89768e;hp=a32d0b2c22aef5dd504df7b676b620da1c3f8fac;hpb=ee3a3c1f59f6d0d50edce5b0f0f33c02eb3c53d7;p=android-x86%2Fbuild.git diff --git a/envsetup.sh b/envsetup.sh index a32d0b2c2..6dc2aa943 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -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)