change code to use unwind.h.
This commit is contained in:
parent
da1eef674b
commit
722488013d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213297
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user