This is the mail archive of the
mailing list for the GDB project.
process attaching gdb to itself
- From: Aurelien Chanudet <aurelien dot chanudet at enst dot fr>
- To: gdb at sources dot redhat dot com
- Date: Sun, 28 Sep 2003 21:45:54 +0200
- Subject: process attaching gdb to itself
How can I have a running process gracefully attach gdb to itself ? I've
tried something like :
char cmd ;
sprintf (cmd, "gdb attach %d", getpid ());
which has the desired effect. However, once in gdb, the debugger is
stuck in wait4(2) and I cannot find a way to resume execution.