> BTW, ptrace is about when the process to be debugged is started from > within gdb process. PArent process debugging the child process. > > How does gdb attach to a process that it has not started, in other > words, how does it attach to a process that is not its child? While 'gdb attach' tells the kernel it wants to debug the calling process and becomes the parent of the debugging process. I found the below link quite useful: http://www.alexonlinux.com/how-debugger-works -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ