Skip to content

Commit 9d7b08b

Browse files
committed
[lldb] Format remaining signal table (NFC)
Restore the signal tables to its original glory and mark it as not to be clang-formatted.
1 parent c3de9a9 commit 9d7b08b

File tree

3 files changed

+169
-183
lines changed

3 files changed

+169
-183
lines changed

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

+68-75
Original file line numberDiff line numberDiff line change
@@ -14,79 +14,72 @@ LinuxSignals::LinuxSignals() : UnixSignals() { Reset(); }
1414

1515
void LinuxSignals::Reset() {
1616
m_signals.clear();
17-
// SIGNO NAME SUPPRESS STOP NOTIFY DESCRIPTION ALIAS
18-
// ===== =========== ======== ===== ======
19-
// ====================================== ======
20-
AddSignal(1, "SIGHUP", false, true, true, "hangup");
21-
AddSignal(2, "SIGINT", true, true, true, "interrupt");
22-
AddSignal(3, "SIGQUIT", false, true, true, "quit");
23-
AddSignal(4, "SIGILL", false, true, true, "illegal instruction");
24-
AddSignal(5, "SIGTRAP", true, true, true,
25-
"trace trap (not reset when caught)");
26-
AddSignal(6, "SIGABRT", false, true, true, "abort()/IOT trap", "SIGIOT");
27-
AddSignal(7, "SIGBUS", false, true, true, "bus error");
28-
AddSignal(8, "SIGFPE", false, true, true, "floating point exception");
29-
AddSignal(9, "SIGKILL", false, true, true, "kill");
30-
AddSignal(10, "SIGUSR1", false, true, true, "user defined signal 1");
31-
AddSignal(11, "SIGSEGV", false, true, true, "segmentation violation");
32-
AddSignal(12, "SIGUSR2", false, true, true, "user defined signal 2");
33-
AddSignal(13, "SIGPIPE", false, true, true,
34-
"write to pipe with reading end closed");
35-
AddSignal(14, "SIGALRM", false, false, false, "alarm");
36-
AddSignal(15, "SIGTERM", false, true, true, "termination requested");
37-
AddSignal(16, "SIGSTKFLT", false, true, true, "stack fault");
38-
AddSignal(17, "SIGCHLD", false, false, true, "child status has changed",
39-
"SIGCLD");
40-
AddSignal(18, "SIGCONT", false, false, true, "process continue");
41-
AddSignal(19, "SIGSTOP", true, true, true, "process stop");
42-
AddSignal(20, "SIGTSTP", false, true, true, "tty stop");
43-
AddSignal(21, "SIGTTIN", false, true, true, "background tty read");
44-
AddSignal(22, "SIGTTOU", false, true, true, "background tty write");
45-
AddSignal(23, "SIGURG", false, true, true, "urgent data on socket");
46-
AddSignal(24, "SIGXCPU", false, true, true, "CPU resource exceeded");
47-
AddSignal(25, "SIGXFSZ", false, true, true, "file size limit exceeded");
48-
AddSignal(26, "SIGVTALRM", false, true, true, "virtual time alarm");
49-
AddSignal(27, "SIGPROF", false, false, false, "profiling time alarm");
50-
AddSignal(28, "SIGWINCH", false, true, true, "window size changes");
51-
AddSignal(29, "SIGIO", false, true, true, "input/output ready/Pollable event",
52-
"SIGPOLL");
53-
AddSignal(30, "SIGPWR", false, true, true, "power failure");
54-
AddSignal(31, "SIGSYS", false, true, true, "invalid system call");
55-
AddSignal(32, "SIG32", false, false, false,
56-
"threading library internal signal 1");
57-
AddSignal(33, "SIG33", false, false, false,
58-
"threading library internal signal 2");
59-
AddSignal(34, "SIGRTMIN", false, false, false, "real time signal 0");
60-
AddSignal(35, "SIGRTMIN+1", false, false, false, "real time signal 1");
61-
AddSignal(36, "SIGRTMIN+2", false, false, false, "real time signal 2");
62-
AddSignal(37, "SIGRTMIN+3", false, false, false, "real time signal 3");
63-
AddSignal(38, "SIGRTMIN+4", false, false, false, "real time signal 4");
64-
AddSignal(39, "SIGRTMIN+5", false, false, false, "real time signal 5");
65-
AddSignal(40, "SIGRTMIN+6", false, false, false, "real time signal 6");
66-
AddSignal(41, "SIGRTMIN+7", false, false, false, "real time signal 7");
67-
AddSignal(42, "SIGRTMIN+8", false, false, false, "real time signal 8");
68-
AddSignal(43, "SIGRTMIN+9", false, false, false, "real time signal 9");
69-
AddSignal(44, "SIGRTMIN+10", false, false, false, "real time signal 10");
70-
AddSignal(45, "SIGRTMIN+11", false, false, false, "real time signal 11");
71-
AddSignal(46, "SIGRTMIN+12", false, false, false, "real time signal 12");
72-
AddSignal(47, "SIGRTMIN+13", false, false, false, "real time signal 13");
73-
AddSignal(48, "SIGRTMIN+14", false, false, false, "real time signal 14");
74-
AddSignal(49, "SIGRTMIN+15", false, false, false, "real time signal 15");
75-
AddSignal(50, "SIGRTMAX-14", false, false, false,
76-
"real time signal 16"); // switching to SIGRTMAX-xxx to match "kill
77-
// -l" output
78-
AddSignal(51, "SIGRTMAX-13", false, false, false, "real time signal 17");
79-
AddSignal(52, "SIGRTMAX-12", false, false, false, "real time signal 18");
80-
AddSignal(53, "SIGRTMAX-11", false, false, false, "real time signal 19");
81-
AddSignal(54, "SIGRTMAX-10", false, false, false, "real time signal 20");
82-
AddSignal(55, "SIGRTMAX-9", false, false, false, "real time signal 21");
83-
AddSignal(56, "SIGRTMAX-8", false, false, false, "real time signal 22");
84-
AddSignal(57, "SIGRTMAX-7", false, false, false, "real time signal 23");
85-
AddSignal(58, "SIGRTMAX-6", false, false, false, "real time signal 24");
86-
AddSignal(59, "SIGRTMAX-5", false, false, false, "real time signal 25");
87-
AddSignal(60, "SIGRTMAX-4", false, false, false, "real time signal 26");
88-
AddSignal(61, "SIGRTMAX-3", false, false, false, "real time signal 27");
89-
AddSignal(62, "SIGRTMAX-2", false, false, false, "real time signal 28");
90-
AddSignal(63, "SIGRTMAX-1", false, false, false, "real time signal 29");
91-
AddSignal(64, "SIGRTMAX", false, false, false, "real time signal 30");
17+
// clang-format off
18+
// SIGNO NAME SUPPRESS STOP NOTIFY DESCRIPTION
19+
// ====== ============== ======== ====== ====== ===================================================
20+
AddSignal(1, "SIGHUP", false, true, true, "hangup");
21+
AddSignal(2, "SIGINT", true, true, true, "interrupt");
22+
AddSignal(3, "SIGQUIT", false, true, true, "quit");
23+
AddSignal(4, "SIGILL", false, true, true, "illegal instruction");
24+
AddSignal(5, "SIGTRAP", true, true, true, "trace trap (not reset when caught)");
25+
AddSignal(6, "SIGABRT", false, true, true, "abort()/IOT trap", "SIGIOT");
26+
AddSignal(7, "SIGBUS", false, true, true, "bus error");
27+
AddSignal(8, "SIGFPE", false, true, true, "floating point exception");
28+
AddSignal(9, "SIGKILL", false, true, true, "kill");
29+
AddSignal(10, "SIGUSR1", false, true, true, "user defined signal 1");
30+
AddSignal(11, "SIGSEGV", false, true, true, "segmentation violation");
31+
AddSignal(12, "SIGUSR2", false, true, true, "user defined signal 2");
32+
AddSignal(13, "SIGPIPE", false, true, true, "write to pipe with reading end closed");
33+
AddSignal(14, "SIGALRM", false, false, false, "alarm");
34+
AddSignal(15, "SIGTERM", false, true, true, "termination requested");
35+
AddSignal(16, "SIGSTKFLT", false, true, true, "stack fault");
36+
AddSignal(17, "SIGCHLD", false, false, true, "child status has changed", "SIGCLD");
37+
AddSignal(18, "SIGCONT", false, false, true, "process continue");
38+
AddSignal(19, "SIGSTOP", true, true, true, "process stop");
39+
AddSignal(20, "SIGTSTP", false, true, true, "tty stop");
40+
AddSignal(21, "SIGTTIN", false, true, true, "background tty read");
41+
AddSignal(22, "SIGTTOU", false, true, true, "background tty write");
42+
AddSignal(23, "SIGURG", false, true, true, "urgent data on socket");
43+
AddSignal(24, "SIGXCPU", false, true, true, "CPU resource exceeded");
44+
AddSignal(25, "SIGXFSZ", false, true, true, "file size limit exceeded");
45+
AddSignal(26, "SIGVTALRM", false, true, true, "virtual time alarm");
46+
AddSignal(27, "SIGPROF", false, false, false, "profiling time alarm");
47+
AddSignal(28, "SIGWINCH", false, true, true, "window size changes");
48+
AddSignal(29, "SIGIO", false, true, true, "input/output ready/Pollable event", "SIGPOLL");
49+
AddSignal(30, "SIGPWR", false, true, true, "power failure");
50+
AddSignal(31, "SIGSYS", false, true, true, "invalid system call");
51+
AddSignal(32, "SIG32", false, false, false, "threading library internal signal 1");
52+
AddSignal(33, "SIG33", false, false, false, "threading library internal signal 2");
53+
AddSignal(34, "SIGRTMIN", false, false, false, "real time signal 0");
54+
AddSignal(35, "SIGRTMIN+1", false, false, false, "real time signal 1");
55+
AddSignal(36, "SIGRTMIN+2", false, false, false, "real time signal 2");
56+
AddSignal(37, "SIGRTMIN+3", false, false, false, "real time signal 3");
57+
AddSignal(38, "SIGRTMIN+4", false, false, false, "real time signal 4");
58+
AddSignal(39, "SIGRTMIN+5", false, false, false, "real time signal 5");
59+
AddSignal(40, "SIGRTMIN+6", false, false, false, "real time signal 6");
60+
AddSignal(41, "SIGRTMIN+7", false, false, false, "real time signal 7");
61+
AddSignal(42, "SIGRTMIN+8", false, false, false, "real time signal 8");
62+
AddSignal(43, "SIGRTMIN+9", false, false, false, "real time signal 9");
63+
AddSignal(44, "SIGRTMIN+10", false, false, false, "real time signal 10");
64+
AddSignal(45, "SIGRTMIN+11", false, false, false, "real time signal 11");
65+
AddSignal(46, "SIGRTMIN+12", false, false, false, "real time signal 12");
66+
AddSignal(47, "SIGRTMIN+13", false, false, false, "real time signal 13");
67+
AddSignal(48, "SIGRTMIN+14", false, false, false, "real time signal 14");
68+
AddSignal(49, "SIGRTMIN+15", false, false, false, "real time signal 15");
69+
AddSignal(50, "SIGRTMAX-14", false, false, false, "real time signal 16"); // switching to SIGRTMAX-xxx to match "kill -l" output
70+
AddSignal(51, "SIGRTMAX-13", false, false, false, "real time signal 17");
71+
AddSignal(52, "SIGRTMAX-12", false, false, false, "real time signal 18");
72+
AddSignal(53, "SIGRTMAX-11", false, false, false, "real time signal 19");
73+
AddSignal(54, "SIGRTMAX-10", false, false, false, "real time signal 20");
74+
AddSignal(55, "SIGRTMAX-9", false, false, false, "real time signal 21");
75+
AddSignal(56, "SIGRTMAX-8", false, false, false, "real time signal 22");
76+
AddSignal(57, "SIGRTMAX-7", false, false, false, "real time signal 23");
77+
AddSignal(58, "SIGRTMAX-6", false, false, false, "real time signal 24");
78+
AddSignal(59, "SIGRTMAX-5", false, false, false, "real time signal 25");
79+
AddSignal(60, "SIGRTMAX-4", false, false, false, "real time signal 26");
80+
AddSignal(61, "SIGRTMAX-3", false, false, false, "real time signal 27");
81+
AddSignal(62, "SIGRTMAX-2", false, false, false, "real time signal 28");
82+
AddSignal(63, "SIGRTMAX-1", false, false, false, "real time signal 29");
83+
AddSignal(64, "SIGRTMAX", false, false, false, "real time signal 30");
84+
// clang-format on
9285
}

0 commit comments

Comments
 (0)