summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2005-01-23 19:23:48 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2005-01-23 19:23:48 +0000
commit724ad703d8c462c0b366f0004c24c9884b69676f (patch)
treeb8b3a4b971fcd7f0070dcfc29e27530eadd0a04c
parent9252e832086e34242cd5d7ba856f00ef016dc852 (diff)
Add debug support.
ok marc@
-rw-r--r--lib/libpthread/shlib_version2
-rw-r--r--lib/libpthread/uthread/uthread_create.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/libpthread/shlib_version b/lib/libpthread/shlib_version
index 9c1551636c5..1394f4e4035 100644
--- a/lib/libpthread/shlib_version
+++ b/lib/libpthread/shlib_version
@@ -1,2 +1,2 @@
major=6
-minor=0
+minor=1
diff --git a/lib/libpthread/uthread/uthread_create.c b/lib/libpthread/uthread/uthread_create.c
index 8889b84ef95..adeada443ae 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.20 2004/02/16 22:51:11 brad Exp $ */
+/* $OpenBSD: uthread_create.c,v 1.21 2005/01/23 19:23:47 kettenis Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -37,6 +37,7 @@
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
+#include <stddef.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/mman.h>
@@ -45,6 +46,10 @@
#include <pthread.h>
#include "pthread_private.h"
+/* 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
pthread_create(pthread_t *thread, const pthread_attr_t *attr,
void *(*start_routine) (void *), void *arg)