summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2010-09-30 12:59:56 +0000
committerdavidxu <davidxu@FreeBSD.org>2010-09-30 12:59:56 +0000
commit86d9958ce8f3148607cb06c3ea3f691f6f292dbe (patch)
treec7c77c7d4dea6e1fa23cdb01c5665504ca77aff3 /lib/libthr
parentc183b15af929908f41c1b90d966a5eef6ea89597 (diff)
downloadFreeBSD-src-86d9958ce8f3148607cb06c3ea3f691f6f292dbe.zip
FreeBSD-src-86d9958ce8f3148607cb06c3ea3f691f6f292dbe.tar.gz
change code to use unwind.h.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_exit.c8
-rw-r--r--lib/libthr/thread/thr_private.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index 0dc7e2d..7001311 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -58,13 +58,13 @@ static void thread_unwind(void) __dead2;
static void thread_uw_init(void);
static _Unwind_Reason_Code thread_unwind_stop(int version,
_Unwind_Action actions,
- _Unwind_Exception_Class exc_class,
+ int64_t exc_class,
struct _Unwind_Exception *exc_obj,
struct _Unwind_Context *context, void *stop_parameter);
/* unwind library pointers */
static _Unwind_Reason_Code (*uwl_forcedunwind)(struct _Unwind_Exception *,
_Unwind_Stop_Fn, void *);
-static _Unwind_Word (*uwl_getcfa)(struct _Unwind_Context *);
+static unsigned long (*uwl_getcfa)(struct _Unwind_Context *);
static void
thread_uw_init(void)
@@ -106,7 +106,7 @@ _Unwind_ForcedUnwind(struct _Unwind_Exception *ex, _Unwind_Stop_Fn stop_func,
return (*uwl_forcedunwind)(ex, stop_func, stop_arg);
}
-_Unwind_Word
+unsigned long
_Unwind_GetCFA(struct _Unwind_Context *context)
{
return (*uwl_getcfa)(context);
@@ -129,7 +129,7 @@ thread_unwind_cleanup(_Unwind_Reason_Code code, struct _Unwind_Exception *e)
static _Unwind_Reason_Code
thread_unwind_stop(int version, _Unwind_Action actions,
- _Unwind_Exception_Class exc_class,
+ int64_t exc_class,
struct _Unwind_Exception *exc_obj,
struct _Unwind_Context *context, void *stop_parameter)
{
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index efd03a9..aa9feef 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -71,7 +71,8 @@
#include "thread_db.h"
#ifdef _PTHREAD_FORCED_UNWIND
-#include <unwind-generic.h>
+#define _BSD_SOURCE
+#include <unwind.h>
#endif
typedef TAILQ_HEAD(pthreadlist, pthread) pthreadlist;
OpenPOWER on IntegriCloud