K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-07-10T05:45:13.183402Z K 7 svn:log V 305 Always clear p_xthread if current thread no longer needs it, in theory, if debugger exited without calling ptrace(PT_DETACH), there is a time window that the p_xthread may be pointing to non-existing thread, in practical, this is not a problem because child process soon will be killed by parent process. END