From 6f8c1f8da7640438bb19a2d40b6b75742a161b9b Mon Sep 17 00:00:00 2001 From: Valentina Giusti Date: Thu, 6 Oct 2016 18:05:12 +0000 Subject: Add bound violation handling for Intel(R) Memory Protection Extensions (Intel(R) MPX) Summary: This patch adds support for handling the SIGSEGV signal with 'si_code == SEGV_BNDERR', which is thrown when a bound violation is caught by the Intel(R) MPX technology. Differential Revision: https://reviews.llvm.org/D25329 llvm-svn: 283474 --- lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp') diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp index ebe80da81c4a..d18d3c16d2c9 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp @@ -316,8 +316,7 @@ void NativeThreadLinux::SetStoppedBySignal(uint32_t signo, (info->si_signo == SIGBUS && info->si_code == SI_KERNEL) ? CrashReason::eInvalidAddress : GetCrashReason(*info); - m_stop_description = GetCrashReasonString( - reason, reinterpret_cast(info->si_addr)); + m_stop_description = GetCrashReasonString(reason, *info); break; } } -- cgit v1.2.3