return DEBUGGER_OFF;
}
+ // side table locks are not optional
+ if (!noSideTableLocksHeld()) {
+ rwlock_unlock(&runtimeLock, debugger_runtimeLock);
+ mutex_unlock(&cacheUpdateLock);
+ debugger_runtimeLock = 0;
+ return DEBUGGER_OFF;
+ }
+
// selLock is optional
if (rwlock_try_write(&selLock)) {
debugger_selLock = RDWR;
* Locking a managed mutex during debugger mode causes a trap unless
* this returns YES.
**********************************************************************/
-PRIVATE_EXTERN BOOL isLockedDuringDebugger(mutex_t *lock)
+PRIVATE_EXTERN BOOL isLockedDuringDebugger(void *lock)
{
assert(DebuggerMode);