diff options
author | 2005-01-23 19:23:47 +0000 | |
---|---|---|
committer | 2005-01-23 19:23:47 +0000 | |
commit | f72fae7e47ac9cbf428bd057571517ff429bc8dc (patch) | |
tree | e40ef96bb17cdfda6e2e91f39126a36c35a1455b /lib | |
parent | "caught" should be volatile sig_atomic_t; lukem@netbsd.org (diff) | |
download | wireguard-openbsd-f72fae7e47ac9cbf428bd057571517ff429bc8dc.tar.xz wireguard-openbsd-f72fae7e47ac9cbf428bd057571517ff429bc8dc.zip |
Add debug support.
ok marc@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpthread/shlib_version | 2 | ||||
-rw-r--r-- | lib/libpthread/uthread/uthread_create.c | 7 |
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) |