aboutsummaryrefslogtreecommitdiffstats
path: root/java/debug.sh
diff options
context:
space:
mode:
authorAndrea Corallo2024-02-28 20:47:57 +0100
committerAndrea Corallo2024-02-28 20:47:57 +0100
commit1fbe56c32761efdc8d268df80a97a9102d00e109 (patch)
tree8d8e76c8ae43c79ef9d76b0f97c12607567664b9 /java/debug.sh
parent6de60f33ed5cc438e20400aee83e1e2032773811 (diff)
parent05195e129fc933db32c9e08a155a94bfa4d75b54 (diff)
downloademacs-1fbe56c32761efdc8d268df80a97a9102d00e109.tar.gz
emacs-1fbe56c32761efdc8d268df80a97a9102d00e109.zip
Merge remote-tracking branch 'origin/master' into 'feature/type-hierarchy'
Diffstat (limited to 'java/debug.sh')
-rwxr-xr-xjava/debug.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/java/debug.sh b/java/debug.sh
index 8fc03d014cf..c5d40141355 100755
--- a/java/debug.sh
+++ b/java/debug.sh
@@ -104,13 +104,14 @@ if [ -z "$devices" ]; then
104 exit 1 104 exit 1
105fi 105fi
106 106
107if [ -z $device ]; then 107if [ `wc -w <<< "$devices"` -gt 1 ] && [ -z $device ]; then
108 device=$devices 108 echo "Multiple devices are available. Please specify one with"
109 echo "the option --device and try again."
110 exit 1
109fi 111fi
110 112
111if [ `wc -w <<< "$devices"` -gt 1 ] && [ -z device ]; then 113if [ -z $device ]; then
112 echo "Multiple devices are available. Please pick one using" 114 device=$devices
113 echo "--device and try again."
114fi 115fi
115 116
116echo "Looking for $package on device $device" 117echo "Looking for $package on device $device"
@@ -189,6 +190,8 @@ if [ "$attach_existing" != "yes" ]; then
189 package_pids=`awk -f tmp.awk <<< $package_pids` 190 package_pids=`awk -f tmp.awk <<< $package_pids`
190fi 191fi
191 192
193rm tmp.awk
194
192pid=$package_pids 195pid=$package_pids
193num_pids=`wc -w <<< "$package_pids"` 196num_pids=`wc -w <<< "$package_pids"`
194 197