summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2009-07-25 02:09:21 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2009-07-25 02:09:21 +0000
commit8c4eca591954bdaedc99cf39f7f3f83fdc5ae579 (patch)
treeb03543b762fb659ffe139010bcdae0740bb939d2 /lib/libpthread/uthread
parent3b8af96aec6a20c0602d21d0e487e0f08240de2b (diff)
- 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,