summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2018-03-16 13:16:15 -0700
committer Alex Light <allight@google.com> 2018-03-16 14:19:18 -0700
commit142f654df0f3af3ed0f1096ecd6c7720769fd0f6 (patch)
tree62674a956cf8cf48ac5e238c19a71f0c14c1f4ad
parent8f27bafc81a2b9efd9e221dbf7db8941b36537ba (diff)
Have run-jdwp-tests try to dump stacks on device
We can use 'su' and debuggerd to get backtraces of failing tests. Test: Manual Bug: 70838465 Change-Id: I266b1c9fc4a1af8a7f30d7b1b531e0a85997dcd0
-rwxr-xr-xtools/run-jdwp-tests.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh
index 53c6fb63f9..de07a47df7 100755
--- a/tools/run-jdwp-tests.sh
+++ b/tools/run-jdwp-tests.sh
@@ -206,10 +206,7 @@ else
if [[ "$mode" == "host" ]]; then
dump_command="/bin/kill -3"
else
- # TODO It would be great to be able to use this on target too but we need to
- # be able to walk /proc to figure out what the actual child pid is.
- dump_command="/system/bin/true"
- # dump_command="/system/xbin/su root /data/local/tmp/system/bin/debuggerd -b"
+ dump_command="/system/xbin/su root /data/local/tmp/system/bin/debuggerd"
fi
if [[ $has_gdb = "yes" ]]; then
if [[ $mode == "target" ]]; then