Author: Jonas Devlieghere Date: 2019-11-20T14:28:37-08:00 New Revision: 25f33d8318a39673fea798b24faf68154c03fdc1
URL: https://github.com/llvm/llvm-project/commit/25f33d8318a39673fea798b24faf68154c03fdc1 DIFF: https://github.com/llvm/llvm-project/commit/25f33d8318a39673fea798b24faf68154c03fdc1.diff LOG: [Reproducer] Limit signals to macro define sin <csignal> SIGBUS is not part of the signal macros defined in the header <csignal>. Added: Modified: lldb/source/Commands/CommandObjectReproducer.cpp lldb/test/Shell/Reproducer/TestCrash.test Removed: ################################################################################ diff --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp index 7f97ba2875cb..2797f3c0a9f0 100644 --- a/lldb/source/Commands/CommandObjectReproducer.cpp +++ b/lldb/source/Commands/CommandObjectReproducer.cpp @@ -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 @@ class CommandObjectReproducerXCrash : public CommandObjectParsed { 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 1f26a4ebf03d..cb0c09aad141 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: ******************** _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits