I am looking for some information on how GDB access a running processes environment and symbols; e.g. how it works and how it halts the execution of 开发者_C百科the program.
gdb uses the ptrace
system call. Read the manual page to learn more.
There is GDB Internals Manual. It covers internals of gdb and describes it's key algorithms and operations.
精彩评论