Re: How gdb attach command works?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, Oct 7, 2009 at 10:44 PM, askb <askb23@xxxxxxxxx> 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 :).

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux