diff options
| author | cl <cl@NetBSD.org> | 2004-02-21 20:48:11 +0000 |
|---|---|---|
| committer | cl <cl@NetBSD.org> | 2004-02-21 20:48:11 +0000 |
| commit | e9598cefd09dfb4e2e7b5e8169b2e1b8c01bcf1c (patch) | |
| tree | cbb91d7dfadd8dd2fa3a6fc3a0da6f8edd4d9076 /lib/libpthread_dbg | |
| parent | 8bf9613af8c49782c41b0886b65c9be609815b77 (diff) | |
Actually test pthread__dbg to check if another gdb is attached (and not
pthread__tsd_destructors whose address happens to be in addr).
Diffstat (limited to 'lib/libpthread_dbg')
| -rw-r--r-- | lib/libpthread_dbg/pthread_dbg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread_dbg/pthread_dbg.c b/lib/libpthread_dbg/pthread_dbg.c index 7e765de63b1..50f78cbdfe6 100644 --- a/lib/libpthread_dbg/pthread_dbg.c +++ b/lib/libpthread_dbg/pthread_dbg.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_dbg.c,v 1.15 2004/02/11 21:07:18 nathanw Exp $ */ +/* $NetBSD: pthread_dbg.c,v 1.16 2004/02/21 20:48:11 cl Exp $ */ /*- * Copyright (c) 2002 Wasabi Systems, Inc. @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_dbg.c,v 1.15 2004/02/11 21:07:18 nathanw Exp $"); +__RCSID("$NetBSD: pthread_dbg.c,v 1.16 2004/02/21 20:48:11 cl Exp $"); #include <stddef.h> #include <stdlib.h> @@ -116,7 +116,7 @@ td_open(struct td_proc_callbacks_t *cb, void *arg, td_proc_t **procp) } proc->tsddestaddr = addr; - val = READ(proc, addr, &dbg, sizeof(int)); + val = READ(proc, proc->dbgaddr, &dbg, sizeof(int)); if (val != 0) goto error; |
