summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
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
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')
-rw-r--r--lib/libpthread/shlib_version2
-rw-r--r--lib/libpthread/uthread/uthread_create.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/shlib_version b/lib/libpthread/shlib_version
index ba5b9bf5d82..94c22abb7e1 100644
--- a/lib/libpthread/shlib_version
+++ b/lib/libpthread/shlib_version
@@ -1,2 +1,2 @@
major=11
-minor=1
+minor=2
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,