PERFORCE change 56203 for review
David Xu
davidxu at FreeBSD.org
Thu Jul 1 02:20:49 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=56203
Change 56203 by davidxu at davidxu_celeron on 2004/07/01 09:19:47
If a lwp is not used by any user thread, return TD_NOTHR.
Affected files ...
.. //depot/projects/davidxu_ksedbg/src/gnu/usr.bin/gdb/libgdb/freebsd-threads.c#2 delete
.. //depot/projects/davidxu_ksedbg/src/lib/libthread_db/pthread/pthread_db.c#3 edit
Differences ...
==== //depot/projects/davidxu_ksedbg/src/lib/libthread_db/pthread/pthread_db.c#3 (text+ko) ====
@@ -302,16 +302,6 @@
return (P2T(ret));
}
- /*
- * If we reach here, the lwp is upcall thread or similar thing not yet
- * mapped to user thread.
- * XXX we probably should check if the lwp is existing in process by
- * calling getgreg, current we just trust gdb.
- */
- th->th_ta_p = (td_thragent_t *)ta;
- th->th_unique = pt_map_lwp(ta, lwp);
- if (th->th_unique == -1)
- return (TD_MALLOC);
return (TD_OK);
}
More information about the p4-projects
mailing list