Date: Tue, 20 Jul 2004 05:55:29 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 57761 for review Message-ID: <200407200555.i6K5tT4V081629@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=57761 Change 57761 by davidxu@davidxu_celeron on 2004/07/20 05:55:12 If step > 1, turn on TMDF_NOUPCALL to hard bind the thread, debugger should know what it is doing. Affected files ... .. //depot/projects/davidxu_ksedbg/src/lib/libthread_db/pthread/pthread_db.c#11 edit Differences ... ==== //depot/projects/davidxu_ksedbg/src/lib/libthread_db/pthread/pthread_db.c#11 (text+ko) ==== @@ -935,6 +935,12 @@ /* Clear or set single step flag in thread mailbox */ tmp = step ? TMDF_SSTEP : 0; + /* + * Debug not only wants to step the thread, but also wants to + * single step it. + */ + if (step > 1) + tmp |= TMDF_NOUPCALL; ret = ps_pwrite(ta->ph, tcb_addr + offsetof(struct tcb, tcb_tmbx.tm_dflags), &tmp, sizeof(tmp)); if (ret != 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407200555.i6K5tT4V081629>