逆向工程 - GDB - Wait for Process



參考資料:
https://www.generacodice.com/en/articolo/1001478/is-there-any-way-to-tell-gdb-to-wait-for-a-process-to-start-and-attach-to-it

#!/bin/sh
d=""
while [ "$d" = "" ]; do
    d=`pgrep -o $1`
done
gdb -p $d