PERFORCE change 57761 for review
David Xu
davidxu at FreeBSD.org
Mon Jul 19 22:55:30 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=57761
Change 57761 by davidxu at 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)
More information about the p4-projects
mailing list