Hi,
I am using ptrace to write my own debugger,
After I call ptrace(ptrace_attach...), my tracee gets a SIGSTOP,
while handling this in my debugger,
I have to call PTRACE_SINGLESTEP ,
waitpid,
then set my breakpoints,
then call ptrace(ptrace_cont...)
This works correctly, however I want to know why was ptrace_singlestep needed
I looked at
http://stackoverflow.com/questions/1...ltiple-threads
and
http://eli.thegreenplace.net/2011/01...s-work-part-1/