summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/POSIX/CrashReason.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-02-24 09:29:14 +0000
committerPavel Labath <labath@google.com>2017-02-24 09:29:14 +0000
commit4a705e7ea0cb911d9ec2933b99f5d1f7c1ba9ad3 (patch)
tree37789fcd612ae9d4d7099924a6c62a11bc3d2eab /lldb/source/Plugins/Process/POSIX/CrashReason.cpp
parent80c3b17410e10bab68ca3f48e86cdbc5357a9954 (diff)
downloadbcm5719-llvm-4a705e7ea0cb911d9ec2933b99f5d1f7c1ba9ad3.tar.gz
bcm5719-llvm-4a705e7ea0cb911d9ec2933b99f5d1f7c1ba9ad3.zip
Implement QPassSignals GDB package in lldb-server
Summary: QPassSignals package allows lldb client to tell lldb-server to ignore certain types of signals and re-inject them back to inferior without stopping execution. Reviewers: jmajors, labath Subscribers: danalbert, srhines, emaste, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D30286 Author: Eugene Zemtsov <ezemtsov@google.com> llvm-svn: 296101
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/CrashReason.cpp')
-rw-r--r--lldb/source/Plugins/Process/POSIX/CrashReason.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/CrashReason.cpp b/lldb/source/Plugins/Process/POSIX/CrashReason.cpp
index 77d6e287486..864418c9003 100644
--- a/lldb/source/Plugins/Process/POSIX/CrashReason.cpp
+++ b/lldb/source/Plugins/Process/POSIX/CrashReason.cpp
@@ -62,7 +62,6 @@ CrashReason GetCrashReasonForSIGSEGV(const siginfo_t &info) {
return CrashReason::eBoundViolation;
}
- assert(false && "unexpected si_code for SIGSEGV");
return CrashReason::eInvalidCrashReason;
}
@@ -88,7 +87,6 @@ CrashReason GetCrashReasonForSIGILL(const siginfo_t &info) {
return CrashReason::eInternalStackError;
}
- assert(false && "unexpected si_code for SIGILL");
return CrashReason::eInvalidCrashReason;
}
@@ -114,7 +112,6 @@ CrashReason GetCrashReasonForSIGFPE(const siginfo_t &info) {
return CrashReason::eFloatSubscriptRange;
}
- assert(false && "unexpected si_code for SIGFPE");
return CrashReason::eInvalidCrashReason;
}
@@ -130,7 +127,6 @@ CrashReason GetCrashReasonForSIGBUS(const siginfo_t &info) {
return CrashReason::eHardwareError;
}
- assert(false && "unexpected si_code for SIGBUS");
return CrashReason::eInvalidCrashReason;
}
}
@@ -158,7 +154,7 @@ std::string GetCrashReasonString(CrashReason reason, lldb::addr_t fault_addr) {
switch (reason) {
default:
- assert(false && "invalid CrashReason");
+ str = "unknown crash reason";
break;
case CrashReason::eInvalidAddress:
OpenPOWER on IntegriCloud