On Wed, Oct 7, 2009 at 10:44 PM, askb <askb23@xxxxxxxxx> wrote:
Thanks to all. I believe I had more than enough information to follow it up on this now :).
While 'gdb attach' tells the kernel it wants to debug the calling> 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?
process and becomes the parent of the debugging process.
I found the below link quite useful:
http://www.alexonlinux.com/how-debugger-works