Date: Thu, 1 Jul 2004 09:20:37 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 56203 for review Message-ID: <200407010920.i619Kb0q072601@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=56203 Change 56203 by davidxu@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407010920.i619Kb0q072601>