Skip to content

Commit a68ffb1

Browse files
committed
Change the default handling of SIGCONT to nosuppress/nostop/notify
Except for the few people actually debugging shells, stopping on a SIGCONT doesn't add any value. And for people trying to run tests under the debugger, stopping here is actively inconvenient. So this patch switches the default behavior to not stop. Differential Revision: https://reviews.llvm.org/D89019
1 parent 4cfc402 commit a68ffb1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lldb/source/Plugins/Process/Utility/LinuxSignals.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void LinuxSignals::Reset() {
3737
AddSignal(16, "SIGSTKFLT", false, true, true, "stack fault");
3838
AddSignal(17, "SIGCHLD", false, false, true, "child status has changed",
3939
"SIGCLD");
40-
AddSignal(18, "SIGCONT", false, true, true, "process continue");
40+
AddSignal(18, "SIGCONT", false, false, true, "process continue");
4141
AddSignal(19, "SIGSTOP", true, true, true, "process stop");
4242
AddSignal(20, "SIGTSTP", false, true, true, "tty stop");
4343
AddSignal(21, "SIGTTIN", false, true, true, "background tty read");

lldb/source/Plugins/Process/Utility/MipsLinuxSignals.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void MipsLinuxSignals::Reset() {
4545
"SIGPOLL");
4646
AddSignal(23, "SIGSTOP", true, true, true, "process stop");
4747
AddSignal(24, "SIGTSTP", false, true, true, "tty stop");
48-
AddSignal(25, "SIGCONT", false, true, true, "process continue");
48+
AddSignal(25, "SIGCONT", false, false, true, "process continue");
4949
AddSignal(26, "SIGTTIN", false, true, true, "background tty read");
5050
AddSignal(27, "SIGTTOU", false, true, true, "background tty write");
5151
AddSignal(28, "SIGVTALRM", false, true, true, "virtual time alarm");

lldb/source/Target/UnixSignals.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void UnixSignals::Reset() {
9494
AddSignal(16, "SIGURG", false, false, false, "urgent condition on IO channel");
9595
AddSignal(17, "SIGSTOP", true, true, true, "sendable stop signal not from tty");
9696
AddSignal(18, "SIGTSTP", false, true, true, "stop signal from tty");
97-
AddSignal(19, "SIGCONT", false, true, true, "continue a stopped process");
97+
AddSignal(19, "SIGCONT", false, false, true, "continue a stopped process");
9898
AddSignal(20, "SIGCHLD", false, false, false, "to parent on child stop or exit");
9999
AddSignal(21, "SIGTTIN", false, true, true, "to readers process group upon background tty read");
100100
AddSignal(22, "SIGTTOU", false, true, true, "to readers process group upon background tty write");

0 commit comments

Comments
 (0)