PERFORCE change 56173 for review

David Xu davidxu at FreeBSD.org
Wed Jun 30 16:14:27 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=56173

Change 56173 by davidxu at davidxu_alona on 2004/06/30 23:13:34

	Use ptrace

Affected files ...

.. //depot/projects/davidxu_ksedbg/src/lib/libthread_db/pthread/pthread_db.c#2 edit

Differences ...

==== //depot/projects/davidxu_ksedbg/src/lib/libthread_db/pthread/pthread_db.c#2 (text+ko) ====

@@ -229,8 +229,7 @@
 				return (P2T(ret));
 		}
 		/* check lwp */
-		ret = ttrace(PT_GETREGS, ps_getpid(ta->ph),
-		             ta->map[id].lwp, (caddr_t)&gregs, 0);
+		ret = ptrace(PT_GETREGS, ta->map[id].lwp, (caddr_t)&gregs, 0);
 		if (ret != 0) {
 			/* no longer exists */
 			ta->map[id].type = PT_NONE;


More information about the p4-projects mailing list