Module Name: src
Committed By: christos
Date: Mon Dec 19 01:24:40 UTC 2016
Modified Files:
src/lib/libexecinfo: unwind.h
Log Message:
flesh out _Unwind_Exception, rust needs it.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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/unwind.h
diff -u src/lib/libexecinfo/unwind.h:1.4 src/lib/libexecinfo/unwind.h:1.5
--- src/lib/libexecinfo/unwind.h:1.4 Fri Dec 2 14:25:19 2016
+++ src/lib/libexecinfo/unwind.h Sun Dec 18 20:24:40 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: unwind.h,v 1.4 2016/12/02 19:25:19 christos Exp $ */
+/* $NetBSD: unwind.h,v 1.5 2016/12/19 01:24:40 christos Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -28,7 +28,8 @@
#ifndef _UNWIND_H_
#define _UNWIND_H_
-#include <sys/cdefs.h>
+#include <stddef.h>
+#include <stdint.h>
__BEGIN_DECLS
struct _Unwind_Context;
@@ -54,6 +55,14 @@ typedef long _Unwind_Word;
#define _URC_INSTALL_CONTEXT 7
#define _URC_CONTINUE_UNWIND 8
+struct _Unwind_Exception {
+ uint64_t exception_class;
+ void (*exception_cleanup)(_Unwind_Reason_Code,
+ struct _Unwind_Exception *);
+ uintptr_t private_1;
+ uintptr_t private_2;
+} __attribute__((__aligned__));
+
typedef _Unwind_Reason_Code
(*_Unwind_Trace_Fn)(struct _Unwind_Context *, void *);
#ifdef notyet