GDB

Wait for Process


參考資料:
1. is-there-any-way-to-tell-gdb-to-wait-for-a-process-to-start-and-attach-to-it

gdbwait.sh

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


返回上一頁