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