td_map_addr2sync(): recognize read-write lock objects.
This commit is contained in:
parent
98af6adb1d
commit
aaad58dd18
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pthread_dbg.c,v 1.25 2004/06/11 07:28:05 scw Exp $ */
|
||||
/* $NetBSD: pthread_dbg.c,v 1.26 2004/07/01 18:27:36 nathanw Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 Wasabi Systems, Inc.
|
||||
@ -36,7 +36,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: pthread_dbg.c,v 1.25 2004/06/11 07:28:05 scw Exp $");
|
||||
__RCSID("$NetBSD: pthread_dbg.c,v 1.26 2004/07/01 18:27:36 nathanw Exp $");
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
@ -818,7 +818,8 @@ td_map_addr2sync(td_proc_t *proc, caddr_t addr, td_sync_t **syncp)
|
||||
|
||||
if ((magic != _PT_MUTEX_MAGIC) &&
|
||||
(magic != _PT_COND_MAGIC) &&
|
||||
(magic != _PT_SPINLOCK_MAGIC))
|
||||
(magic != _PT_SPINLOCK_MAGIC) &&
|
||||
(magic != _PT_RWLOCK_MAGIC))
|
||||
return TD_ERR_NOOBJ;
|
||||
|
||||
val = td__getsync(proc, addr, syncp);
|
||||
|
Loading…
Reference in New Issue
Block a user