aboutsummaryrefslogtreecommitdiff
path: root/lib/libunwind/src/Unwind-seh.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-07-01 16:39:13 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-07-01 16:39:31 -0700
commitceb3819c42254c1d379d4a0416009d136bbb0385 (patch)
treee54a495c392e190188ec55f5d48ebce8dcfb26e6 /lib/libunwind/src/Unwind-seh.cpp
parentaa964bd555bf7d034b5bfea6275d6edddc35cb8c (diff)
downloadzig-ceb3819c42254c1d379d4a0416009d136bbb0385.tar.gz
zig-ceb3819c42254c1d379d4a0416009d136bbb0385.zip
update libunwind to llvm 14.0.6
Diffstat (limited to 'lib/libunwind/src/Unwind-seh.cpp')
-rw-r--r--lib/libunwind/src/Unwind-seh.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libunwind/src/Unwind-seh.cpp b/lib/libunwind/src/Unwind-seh.cpp
index 56a52506e1..f00bc4721b 100644
--- a/lib/libunwind/src/Unwind-seh.cpp
+++ b/lib/libunwind/src/Unwind-seh.cpp
@@ -1,4 +1,4 @@
-//===--------------------------- Unwind-seh.cpp ---------------------------===//
+//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -28,8 +28,6 @@
#include "libunwind_ext.h"
#include "UnwindCursor.hpp"
-#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
-
using namespace libunwind;
#define STATUS_USER_DEFINED (1u << 29)
@@ -171,8 +169,8 @@ _GCC_specific_handler(PEXCEPTION_RECORD ms_exc, PVOID frame, PCONTEXT ms_ctx,
__unw_get_reg(&cursor, UNW_ARM_R1, &exc->private_[3]);
#elif defined(__aarch64__)
exc->private_[2] = disp->TargetPc;
- __unw_get_reg(&cursor, UNW_ARM64_X0, &retval);
- __unw_get_reg(&cursor, UNW_ARM64_X1, &exc->private_[3]);
+ __unw_get_reg(&cursor, UNW_AARCH64_X0, &retval);
+ __unw_get_reg(&cursor, UNW_AARCH64_X1, &exc->private_[3]);
#endif
__unw_get_reg(&cursor, UNW_REG_IP, &target);
ms_exc->ExceptionCode = STATUS_GCC_UNWIND;
@@ -246,6 +244,7 @@ unwind_phase2_forced(unw_context_t *uc,
return _URC_FATAL_PHASE2_ERROR;
}
+#ifndef NDEBUG
// When tracing, print state information.
if (_LIBUNWIND_TRACING_UNWINDING) {
char functionBuf[512];
@@ -261,6 +260,7 @@ unwind_phase2_forced(unw_context_t *uc,
(void *)exception_object, frameInfo.start_ip, functionName,
frameInfo.lsda, frameInfo.handler);
}
+#endif
// Call stop function at each frame.
_Unwind_Action action =