Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jul 2004 00:31:43 GMT
From:      David Xu <davidxu@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 57019 for review
Message-ID:  <200407110031.i6B0Vh4g048485@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=57019

Change 57019 by davidxu@davidxu_alona on 2004/07/11 00:31:31

	Check debugger suspension request after resuming.

Affected files ...

.. //depot/projects/davidxu_ksedbg/src/sys/kern/kern_sig.c#6 edit

Differences ...

==== //depot/projects/davidxu_ksedbg/src/sys/kern/kern_sig.c#6 (text+ko) ====

@@ -2038,6 +2038,7 @@
 				td0->td_flags |= TDF_ASTPENDING;
 			}
 		}
+stopme:
 		thread_stopped(p);
 		thread_suspend_one(td);
 		PROC_UNLOCK(p);
@@ -2046,6 +2047,12 @@
 		mtx_unlock_spin(&sched_lock);
 		PICKUP_GIANT();
 		PROC_LOCK(p);
+		if (td->td_flags & TDF_DBSUSPEND) {
+			if (p->p_flag & P_SINGLE_EXIT)
+				break;
+			mtx_lock_spin(&sched_lock);
+			goto stopme;
+		}
 	}
 	return (td->td_xsig);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407110031.i6B0Vh4g048485>