aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
diff options
context:
space:
mode:
authorValentina Giusti <valentina.giusti@intel.com>2016-10-06 18:05:12 +0000
committerValentina Giusti <valentina.giusti@intel.com>2016-10-06 18:05:12 +0000
commit6f8c1f8da7640438bb19a2d40b6b75742a161b9b (patch)
treeab13270b5211014569f04fb3af86c42714413074 /lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
parentd0a4db76324e40e38a23429c07eda76f9f26a153 (diff)
downloadllvm-6f8c1f8da7640438bb19a2d40b6b75742a161b9b.zip
llvm-6f8c1f8da7640438bb19a2d40b6b75742a161b9b.tar.gz
llvm-6f8c1f8da7640438bb19a2d40b6b75742a161b9b.tar.bz2
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
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
index ebe80da..d18d3c1 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<uintptr_t>(info->si_addr));
+ m_stop_description = GetCrashReasonString(reason, *info);
break;
}
}