mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 13:08:42 +00:00
[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:
parent
f24ed3a051
commit
25f33d8318
@ -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;
|
||||
|
@ -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: ********************
|
||||
|
Loading…
x
Reference in New Issue
Block a user