Hi, sleep 1h& pid=$!; kill -STOP $pid; gdb sleep $pid -> Attaching to program: /bin/sleep, process 20768 ../../gdb/linux-nat.c:1057: internal-error: linux_nat_attach: Assertion `pid == GET_PID (inferior_ptid) && WIFSTOPPED (status) && WSTOPSIG (status) == SIGSTOP' failed. Testsuite not affected. Not tested if the patch is properly utilized on older (<=2.4) Linux kernels. 2006-09-17 Jan Kratochvil * gdb/linux-nat.c (linux_nat_attach): Handle already stopped processes. 2006-09-17 Jeff Johnston Jan Kratochvil * gdb.base/attachstop.exp, gdb.base/attachstop.c: New files, test attaching to already stopped processes. Regards, Jan