summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authorkurt <kurt@openbsd.org>2009-07-25 02:09:20 +0000
committerkurt <kurt@openbsd.org>2009-07-25 02:09:20 +0000
commitb320933f0536402f155502d810ee2c424c50400c (patch)
tree1c7498a3548df26b4f33eac431137af6ed25c26d /lib/libpthread/uthread
parent- enable thread model posix for gcc 3 which makes dwarf2 exception (diff)
downloadwireguard-openbsd-b320933f0536402f155502d810ee2c424c50400c.tar.xz
wireguard-openbsd-b320933f0536402f155502d810ee2c424c50400c.zip
- add a symbol to help gdb location pthread internals (_thread_ctx_offset)
ok kettenis@
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r--lib/libpthread/uthread/uthread_create.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/uthread/uthread_create.c b/lib/libpthread/uthread/uthread_create.c
index 6b5633f9f06..fe40c5e3133 100644
--- a/lib/libpthread/uthread/uthread_create.c
+++ b/lib/libpthread/uthread/uthread_create.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_create.c,v 1.23 2008/12/18 09:30:32 guenther Exp $ */
+/* $OpenBSD: uthread_create.c,v 1.24 2009/07/25 02:09:20 kurt Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -49,6 +49,7 @@
/* Symbols that help gdb find the information it needs. */
int _thread_next_offset = offsetof(struct pthread, tle.tqe_next);
int _thread_state_offset = offsetof(struct pthread, state);
+int _thread_ctx_offset = offsetof(struct pthread, _machdep);
int
pthread_create(pthread_t *thread, const pthread_attr_t *attr,