Re: How gdb attach command works?

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

 



On Wed, Oct 7, 2009 at 4:44 PM, Rajat Jain <Rajat.Jain@xxxxxxxxxxxx> 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?

 
 The debugged process effectively becomes a child of GDB when PTRACE_ATTACH is used.  More info in the man page.

- P


[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