RE: How gdb attach command works?

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

 



Hi,

> I do have a doubt not exactly on the kernel side
> but how exactly the 'gdb attach' command works?
> Isn't this violates the OS 'memory protection'
> objective of prevent a process from accessing memory
> that has not been allocated to it and hence to interfere
> with other processes memory space?  

No. See:

http://www.kernel.org/doc/man-pages/online/pages/man2/ptrace.2.html 
	

This is the system call gdb usses to "attach" to the process and make
observations and control it.

Thanks & Best Regards,

Rajat Jain


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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