On Wed, Oct 7, 2009 at 10:44 PM, askb <[email protected]> wrote:

> > 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
>
>
>
>
> Thanks to all. I believe I had more than enough information to follow it up
on this now :).

Reply via email to