Module Name: src
Committed By: christos
Date: Wed Oct 22 16:30:22 UTC 2014
Modified Files:
src/lib/libexecinfo: Makefile unwind.h
Log Message:
Make unwind.h installable.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libexecinfo/Makefile
cvs rdiff -u -r1.2 -r1.3 src/lib/libexecinfo/unwind.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libexecinfo/Makefile
diff -u src/lib/libexecinfo/Makefile:1.5 src/lib/libexecinfo/Makefile:1.6
--- src/lib/libexecinfo/Makefile:1.5 Sun Mar 9 17:37:37 2014
+++ src/lib/libexecinfo/Makefile Wed Oct 22 12:30:21 2014
@@ -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 <bsd.own.mk>
@@ -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
Index: src/lib/libexecinfo/unwind.h
diff -u src/lib/libexecinfo/unwind.h:1.2 src/lib/libexecinfo/unwind.h:1.3
--- src/lib/libexecinfo/unwind.h:1.2 Mon Mar 24 17:26:01 2014
+++ src/lib/libexecinfo/unwind.h Wed Oct 22 12:30:21 2014
@@ -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 <sys/cdefs.h>
+
__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