X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=envsetup.sh;h=6dc2aa943bfd047797526d72567785aa63dc295f;hb=2779fa7d9fea6f61392135a231e69a3e9b89768e;hp=9eeab02e2cac54d248785a0c040528ae72eb3f28;hpb=aab0d4c9f9c175a287aca3954921cbf7731bf1f7;p=android-x86%2Fbuild.git diff --git a/envsetup.sh b/envsetup.sh index 9eeab02e2..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) @@ -967,14 +974,7 @@ function runtest() echo "Couldn't locate the top of the tree. Try setting TOP." >&2 return fi - (cd "$T" && development/testrunner/runtest.py $@) -} - -# TODO: Remove this some time after 1 June 2009 -function runtest_py() -{ - echo "runtest_py is obsolete; use runtest instead" >&2 - return 1 + ("$T"/development/testrunner/runtest.py $@) } function godir () {