[Lldb-commits] [PATCH] D11176: [LLDB][MIPS] To handle SI_KERENEL generated for invalid 64 bit address

Nitesh Jain nitesh.jain at imgtec.com
Wed Jul 22 00:40:08 PDT 2015


nitesh.jain updated this revision to Diff 30325.

Repository:
  rL LLVM

http://reviews.llvm.org/D11176

Files:
  source/Plugins/Process/POSIX/CrashReason.cpp

Index: source/Plugins/Process/POSIX/CrashReason.cpp
===================================================================
--- source/Plugins/Process/POSIX/CrashReason.cpp
+++ source/Plugins/Process/POSIX/CrashReason.cpp
@@ -11,6 +11,10 @@
 
 #include <sstream>
 
+#ifndef SI_KERNEL
+#define SI_KERNEL 0x80
+#endif
+
 namespace {
 
 void
@@ -108,6 +112,9 @@
 
     switch (info.si_code)
     {
+    case SI_KERNEL:
+        //In case of MIPS64 target, SI_KERENEL is generated for invalid 64bit address.
+        return CrashReason::eInvalidAddress;
     case BUS_ADRALN:
         return CrashReason::eIllegalAlignment;
     case BUS_ADRERR:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11176.30325.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150722/735c3afb/attachment.bin>


More information about the lldb-commits mailing list