From 98d839c6b3b2aa73f7baa2b83a0a998c8948dd08 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 22 Oct 2014 16:30:21 +0000 Subject: [PATCH] Make unwind.h installable. --- lib/libexecinfo/Makefile | 4 +++- lib/libexecinfo/unwind.h | 14 +++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/libexecinfo/Makefile b/lib/libexecinfo/Makefile index 45122741785e..45d589840662 100644 --- a/lib/libexecinfo/Makefile +++ b/lib/libexecinfo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2014/03/09 21:37:37 christos Exp $ +# $NetBSD: Makefile,v 1.6 2014/10/22 16:30:21 christos Exp $ .include @@ -27,6 +27,8 @@ SRCS+=unwind_arm_ehabi_stub.c SRCS+=builtin.c .endif +INCS=unwind.h + MLINKS+= backtrace.3 backtrace_symbols.3 MLINKS+= backtrace.3 backtrace_symbols_fmt.3 MLINKS+= backtrace.3 backtrace_symbols_fd.3 diff --git a/lib/libexecinfo/unwind.h b/lib/libexecinfo/unwind.h index a423cb46c0de..96d76e38fa22 100644 --- a/lib/libexecinfo/unwind.h +++ b/lib/libexecinfo/unwind.h @@ -1,4 +1,4 @@ -/* $NetBSD: unwind.h,v 1.2 2014/03/24 21:26:01 joerg Exp $ */ +/* $NetBSD: unwind.h,v 1.3 2014/10/22 16:30:21 christos Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -28,6 +28,8 @@ #ifndef _UNWIND_H_ #define _UNWIND_H_ +#include + __BEGIN_DECLS struct _Unwind_Context; struct _Unwind_Exception; @@ -35,6 +37,16 @@ typedef int _Unwind_Reason_Code; typedef void *_Unwind_Ptr; typedef long _Unwind_Word; +#define _URC_NO_REASON 0 +#define _URC_FOREIGN_EXCEPTION_CAUGHT 1 +#define _URC_FATAL_PHASE2_ERROR 2 +#define _URC_FATAL_PHASE1_ERROR 3 +#define _URC_NORMAL_STOP 4 +#define _URC_END_OF_STACK 5 +#define _URC_HANDLER_FOUND 6 +#define _URC_INSTALL_CONTEXT 7 +#define _URC_CONTINUE_UNWIND 8 + typedef _Unwind_Reason_Code (*_Unwind_Trace_Fn)(struct _Unwind_Context *, void *); #ifdef notyet