On Wed, Oct 7, 2009 at 11:35 AM, Gaurav Aggarwal <grv.aggarwal@xxxxxxxxx> wrote:
Hey All,
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?
--
Regards,
Gaurav Aggarwal
Please read about ptrace system call. You will find many detailed articles
explaining how ptrace can be used.
Here is one for starters:
http://www.linuxjournal.com/article/6100
Regards,
Sandeep.