diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-11-20 14:11:00 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-11-20 14:28:37 -0800 |
commit | 25f33d8318a39673fea798b24faf68154c03fdc1 (patch) | |
tree | b4b0eb289543a2b2efce5701ac7e61e51b3dc255 | |
parent | f24ed3a05198003ef2c76ead91019561a45d26b5 (diff) | |
download | bcm5719-llvm-25f33d8318a39673fea798b24faf68154c03fdc1.tar.gz bcm5719-llvm-25f33d8318a39673fea798b24faf68154c03fdc1.zip |
[Reproducer] Limit signals to macro define sin <csignal>
SIGBUS is not part of the signal macros defined in the header <csignal>.
-rw-r--r-- | lldb/source/Commands/CommandObjectReproducer.cpp | 9 | ||||
-rw-r--r-- | lldb/test/Shell/Reproducer/TestCrash.test | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp index 7f97ba2875c..2797f3c0a9f 100644 --- a/lldb/source/Commands/CommandObjectReproducer.cpp +++ b/lldb/source/Commands/CommandObjectReproducer.cpp @@ -74,18 +74,12 @@ static constexpr OptionEnumValues ReproducerProviderType() { #include "CommandOptions.inc" enum ReproducerCrashSignal { - eReproducerCrashSigbus, eReproducerCrashSigill, eReproducerCrashSigsegv, }; static constexpr OptionEnumValueElement g_reproducer_signaltype[] = { { - eReproducerCrashSigbus, - "SIGBUS", - "Bus error", - }, - { eReproducerCrashSigill, "SIGILL", "Illegal instruction", @@ -219,9 +213,6 @@ protected: case eReproducerCrashSigill: std::raise(SIGILL); break; - case eReproducerCrashSigbus: - std::raise(SIGBUS); - break; case eReproducerCrashSigsegv: std::raise(SIGSEGV); break; diff --git a/lldb/test/Shell/Reproducer/TestCrash.test b/lldb/test/Shell/Reproducer/TestCrash.test index 1f26a4ebf03..cb0c09aad14 100644 --- a/lldb/test/Shell/Reproducer/TestCrash.test +++ b/lldb/test/Shell/Reproducer/TestCrash.test @@ -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: ******************** |