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
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh
index 53c6fb6..de07a47 100755
--- a/tools/run-jdwp-tests.sh
+++ b/tools/run-jdwp-tests.sh
@@ -206,10 +206,7 @@
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