Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libexecinfo flesh out _Unwind_Exception, rust needs it.
details: https://anonhg.NetBSD.org/src/rev/42cee2e381c6
branches: trunk
changeset: 349684:42cee2e381c6
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 19 01:24:40 2016 +0000
description:
flesh out _Unwind_Exception, rust needs it.
diffstat:
lib/libexecinfo/unwind.h | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 99a1b9742f62 -r 42cee2e381c6 lib/libexecinfo/unwind.h
--- a/lib/libexecinfo/unwind.h Sun Dec 18 19:39:05 2016 +0000
+++ b/lib/libexecinfo/unwind.h Mon Dec 19 01:24:40 2016 +0000
@@ -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 @@
#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
Home |
Main Index |
Thread Index |
Old Index