[Reproducer] Limit signals to macro define sin <csignal>

SIGBUS is not part of the signal macros defined in the header <csignal>.
This commit is contained in:
Jonas Devlieghere 2019-11-20 14:11:00 -08:00
parent f24ed3a051
commit 25f33d8318
2 changed files with 0 additions and 10 deletions

View File

@ -74,17 +74,11 @@ static constexpr OptionEnumValues ReproducerProviderType() {
#include "CommandOptions.inc"
enum ReproducerCrashSignal {
eReproducerCrashSigbus,
eReproducerCrashSigill,
eReproducerCrashSigsegv,
};
static constexpr OptionEnumValueElement g_reproducer_signaltype[] = {
{
eReproducerCrashSigbus,
"SIGBUS",
"Bus error",
},
{
eReproducerCrashSigill,
"SIGILL",
@ -219,9 +213,6 @@ protected:
case eReproducerCrashSigill:
std::raise(SIGILL);
break;
case eReproducerCrashSigbus:
std::raise(SIGBUS);
break;
case eReproducerCrashSigsegv:
std::raise(SIGSEGV);
break;

View File

@ -5,7 +5,6 @@
# RUN: rm -rf %t.repro
# RUN: %lldb -b --capture --capture-path %t.repro -o 'reproducer xcrash -s SIGSEGV' | FileCheck %s
# RUN: %lldb -b --capture --capture-path %t.repro -o 'reproducer xcrash -s SIGBUS' | FileCheck %s
# RUN: %lldb -b --capture --capture-path %t.repro -o 'reproducer xcrash -s SIGILL' | FileCheck %s
# CHECK: ********************