Skip to content

Commit

Permalink
#40 adb: Complete forward command with remote JDWP pids
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoulaj committed Aug 9, 2011
1 parent a9d018e commit 8e1da28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _adb
Expand Up @@ -301,16 +301,17 @@ _adb_remote_forward_specs() {
if compset -P '*:'; then
case ${IPREFIX%:} in
(tcp)
_message -e ports 'port' && ret=0
_message -e ports 'remote port' && ret=0
;;
(localabstract|localreserved|localfilesystem)
_message -e sockets 'socket' && ret=0
_message -e sockets 'remote socket' && ret=0
;;
(dev)
_message -e devices 'device' && ret=0
_message -e devices 'remote device' && ret=0
;;
(jdwp)
_message -e pids 'pid' && ret=0 # TODO Use "adb jdwp" output
local pids; pids=($(_call_program pids $adb_cmd jdwp))
_describe -t remote-pids 'remote pid' pids && ret=0
;;
esac
else
Expand Down

0 comments on commit 8e1da28

Please sign in to comment.