Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9d04bf8 authored by Grace Kloba's avatar Grace Kloba
Browse files

Enable gdbclient to accept both name and pid of the process

Change-Id: I10234ddb2e52de302818e1b5b27a8f35651c4395
parent 76ace42c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -785,7 +785,11 @@ function gdbclient()
       local PID
       local PROG="$3"
       if [ "$PROG" ] ; then
           if [[ "$PROG" =~ ^[0-9]+$ ]] ; then
               PID="$3"
           else
               PID=`pid $3`
           fi
           adb forward "tcp$PORT" "tcp$PORT"
           adb shell gdbserver $PORT --attach $PID &
           sleep 2