[Lldb-commits] [lldb] 9d7b08b - [lldb] Format remaining signal table (NFC)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 8 21:51:49 PDT 2020


Author: Jonas Devlieghere
Date: 2020-10-08T21:51:41-07:00
New Revision: 9d7b08bd0657688c186b5b3d39512c484e8c37f5

URL: https://github.com/llvm/llvm-project/commit/9d7b08bd0657688c186b5b3d39512c484e8c37f5
DIFF: https://github.com/llvm/llvm-project/commit/9d7b08bd0657688c186b5b3d39512c484e8c37f5.diff

LOG: [lldb] Format remaining signal table (NFC)

Restore the signal tables to its original glory and mark it as not to be
clang-formatted.

Added: 
    

Modified: 
    lldb/source/Plugins/Process/Utility/LinuxSignals.cpp
    lldb/source/Plugins/Process/Utility/MipsLinuxSignals.cpp
    lldb/source/Target/UnixSignals.cpp

Removed: 
    


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

diff  --git a/lldb/source/Plugins/Process/Utility/MipsLinuxSignals.cpp b/lldb/source/Plugins/Process/Utility/MipsLinuxSignals.cpp
index 17c238c04453..fb51c56953f8 100644
--- a/lldb/source/Plugins/Process/Utility/MipsLinuxSignals.cpp
+++ b/lldb/source/Plugins/Process/Utility/MipsLinuxSignals.cpp
@@ -14,79 +14,72 @@ MipsLinuxSignals::MipsLinuxSignals() : UnixSignals() { Reset(); }
 
 void MipsLinuxSignals::Reset() {
   m_signals.clear();
-  //        SIGNO  NAME            SUPPRESS STOP   NOTIFY DESCRIPTION ALIAS
-  //        =====  ===========     ======== =====  ======
-  //        ======================================   ========
-  AddSignal(1, "SIGHUP", false, true, true, "hangup");
-  AddSignal(2, "SIGINT", true, true, true, "interrupt");
-  AddSignal(3, "SIGQUIT", false, true, true, "quit");
-  AddSignal(4, "SIGILL", false, true, true, "illegal instruction");
-  AddSignal(5, "SIGTRAP", true, true, true,
-            "trace trap (not reset when caught)");
-  AddSignal(6, "SIGABRT", false, true, true, "abort()/IOT trap", "SIGIOT");
-  AddSignal(7, "SIGEMT", false, true, true, "terminate process with core dump");
-  AddSignal(8, "SIGFPE", false, true, true, "floating point exception");
-  AddSignal(9, "SIGKILL", false, true, true, "kill");
-  AddSignal(10, "SIGBUS", false, true, true, "bus error");
-  AddSignal(11, "SIGSEGV", false, true, true, "segmentation violation");
-  AddSignal(12, "SIGSYS", false, true, true, "invalid system call");
-  AddSignal(13, "SIGPIPE", false, true, true,
-            "write to pipe with reading end closed");
-  AddSignal(14, "SIGALRM", false, false, false, "alarm");
-  AddSignal(15, "SIGTERM", false, true, true, "termination requested");
-  AddSignal(16, "SIGUSR1", false, true, true, "user defined signal 1");
-  AddSignal(17, "SIGUSR2", false, true, true, "user defined signal 2");
-  AddSignal(18, "SIGCHLD", false, false, true, "child status has changed",
-            "SIGCLD");
-  AddSignal(19, "SIGPWR", false, true, true, "power failure");
-  AddSignal(20, "SIGWINCH", false, true, true, "window size changes");
-  AddSignal(21, "SIGURG", false, true, true, "urgent data on socket");
-  AddSignal(22, "SIGIO", false, true, true, "input/output ready/Pollable event",
-            "SIGPOLL");
-  AddSignal(23, "SIGSTOP", true, true, true, "process stop");
-  AddSignal(24, "SIGTSTP", false, true, true, "tty stop");
-  AddSignal(25, "SIGCONT", false, false, true, "process continue");
-  AddSignal(26, "SIGTTIN", false, true, true, "background tty read");
-  AddSignal(27, "SIGTTOU", false, true, true, "background tty write");
-  AddSignal(28, "SIGVTALRM", false, true, true, "virtual time alarm");
-  AddSignal(29, "SIGPROF", false, false, false, "profiling time alarm");
-  AddSignal(30, "SIGXCPU", false, true, true, "CPU resource exceeded");
-  AddSignal(31, "SIGXFSZ", false, true, true, "file size limit exceeded");
-  AddSignal(32, "SIG32", false, false, false,
-            "threading library internal signal 1");
-  AddSignal(33, "SIG33", false, false, false,
-            "threading library internal signal 2");
-  AddSignal(34, "SIGRTMIN", false, false, false, "real time signal 0");
-  AddSignal(35, "SIGRTMIN+1", false, false, false, "real time signal 1");
-  AddSignal(36, "SIGRTMIN+2", false, false, false, "real time signal 2");
-  AddSignal(37, "SIGRTMIN+3", false, false, false, "real time signal 3");
-  AddSignal(38, "SIGRTMIN+4", false, false, false, "real time signal 4");
-  AddSignal(39, "SIGRTMIN+5", false, false, false, "real time signal 5");
-  AddSignal(40, "SIGRTMIN+6", false, false, false, "real time signal 6");
-  AddSignal(41, "SIGRTMIN+7", false, false, false, "real time signal 7");
-  AddSignal(42, "SIGRTMIN+8", false, false, false, "real time signal 8");
-  AddSignal(43, "SIGRTMIN+9", false, false, false, "real time signal 9");
-  AddSignal(44, "SIGRTMIN+10", false, false, false, "real time signal 10");
-  AddSignal(45, "SIGRTMIN+11", false, false, false, "real time signal 11");
-  AddSignal(46, "SIGRTMIN+12", false, false, false, "real time signal 12");
-  AddSignal(47, "SIGRTMIN+13", false, false, false, "real time signal 13");
-  AddSignal(48, "SIGRTMIN+14", false, false, false, "real time signal 14");
-  AddSignal(49, "SIGRTMIN+15", false, false, false, "real time signal 15");
-  AddSignal(50, "SIGRTMAX-14", false, false, false,
-            "real time signal 16"); // switching to SIGRTMAX-xxx to match "kill
-                                    // -l" output
-  AddSignal(51, "SIGRTMAX-13", false, false, false, "real time signal 17");
-  AddSignal(52, "SIGRTMAX-12", false, false, false, "real time signal 18");
-  AddSignal(53, "SIGRTMAX-11", false, false, false, "real time signal 19");
-  AddSignal(54, "SIGRTMAX-10", false, false, false, "real time signal 20");
-  AddSignal(55, "SIGRTMAX-9", false, false, false, "real time signal 21");
-  AddSignal(56, "SIGRTMAX-8", false, false, false, "real time signal 22");
-  AddSignal(57, "SIGRTMAX-7", false, false, false, "real time signal 23");
-  AddSignal(58, "SIGRTMAX-6", false, false, false, "real time signal 24");
-  AddSignal(59, "SIGRTMAX-5", false, false, false, "real time signal 25");
-  AddSignal(60, "SIGRTMAX-4", false, false, false, "real time signal 26");
-  AddSignal(61, "SIGRTMAX-3", false, false, false, "real time signal 27");
-  AddSignal(62, "SIGRTMAX-2", false, false, false, "real time signal 28");
-  AddSignal(63, "SIGRTMAX-1", false, false, false, "real time signal 29");
-  AddSignal(64, "SIGRTMAX", false, false, false, "real time signal 30");
+  // clang-format off
+  //        SIGNO   NAME            SUPPRESS  STOP    NOTIFY  DESCRIPTION
+  //        ======  ==============  ========  ======  ======  ===================================================
+  AddSignal(1, "SIGHUP",            false,    true,   true,   "hangup");
+  AddSignal(2, "SIGINT",            true,     true,   true,   "interrupt");
+  AddSignal(3, "SIGQUIT",           false,    true,   true,   "quit");
+  AddSignal(4, "SIGILL",            false,    true,   true,   "illegal instruction");
+  AddSignal(5, "SIGTRAP",           true,     true,   true,   "trace trap (not reset when caught)");
+  AddSignal(6, "SIGABRT",           false,    true,   true,   "abort()/IOT trap", "SIGIOT");
+  AddSignal(7, "SIGEMT",            false,    true,   true,   "terminate process with core dump");
+  AddSignal(8, "SIGFPE",            false,    true,   true,   "floating point exception");
+  AddSignal(9, "SIGKILL",           false,    true,   true,   "kill");
+  AddSignal(10, "SIGBUS",           false,    true,   true,   "bus error");
+  AddSignal(11, "SIGSEGV",          false,    true,   true,   "segmentation violation");
+  AddSignal(12, "SIGSYS",           false,    true,   true,   "invalid system call");
+  AddSignal(13, "SIGPIPE",          false,    true,   true,   "write to pipe with reading end closed");
+  AddSignal(14, "SIGALRM",          false,    false,  false,  "alarm");
+  AddSignal(15, "SIGTERM",          false,    true,   true,   "termination requested");
+  AddSignal(16, "SIGUSR1",          false,    true,   true,   "user defined signal 1");
+  AddSignal(17, "SIGUSR2",          false,    true,   true,   "user defined signal 2");
+  AddSignal(18, "SIGCHLD",          false,    false,  true,   "child status has changed", "SIGCLD");
+  AddSignal(19, "SIGPWR",           false,    true,   true,   "power failure");
+  AddSignal(20, "SIGWINCH",         false,    true,   true,   "window size changes");
+  AddSignal(21, "SIGURG",           false,    true,   true,   "urgent data on socket");
+  AddSignal(22, "SIGIO",            false,    true,   true,   "input/output ready/Pollable event", "SIGPOLL");
+  AddSignal(23, "SIGSTOP",          true,     true,   true,   "process stop");
+  AddSignal(24, "SIGTSTP",          false,    true,   true,   "tty stop");
+  AddSignal(25, "SIGCONT",          false,    false,  true,   "process continue");
+  AddSignal(26, "SIGTTIN",          false,    true,   true,   "background tty read");
+  AddSignal(27, "SIGTTOU",          false,    true,   true,   "background tty write");
+  AddSignal(28, "SIGVTALRM",        false,    true,   true,   "virtual time alarm");
+  AddSignal(29, "SIGPROF",          false,    false,  false,  "profiling time alarm");
+  AddSignal(30, "SIGXCPU",          false,    true,   true,   "CPU resource exceeded");
+  AddSignal(31, "SIGXFSZ",          false,    true,   true,   "file size limit exceeded");
+  AddSignal(32, "SIG32",            false,    false,  false,  "threading library internal signal 1");
+  AddSignal(33, "SIG33",            false,    false,  false,  "threading library internal signal 2");
+  AddSignal(34, "SIGRTMIN",         false,    false,  false,  "real time signal 0");
+  AddSignal(35, "SIGRTMIN+1",       false,    false,  false,  "real time signal 1");
+  AddSignal(36, "SIGRTMIN+2",       false,    false,  false,  "real time signal 2");
+  AddSignal(37, "SIGRTMIN+3",       false,    false,  false,  "real time signal 3");
+  AddSignal(38, "SIGRTMIN+4",       false,    false,  false,  "real time signal 4");
+  AddSignal(39, "SIGRTMIN+5",       false,    false,  false,  "real time signal 5");
+  AddSignal(40, "SIGRTMIN+6",       false,    false,  false,  "real time signal 6");
+  AddSignal(41, "SIGRTMIN+7",       false,    false,  false,  "real time signal 7");
+  AddSignal(42, "SIGRTMIN+8",       false,    false,  false,  "real time signal 8");
+  AddSignal(43, "SIGRTMIN+9",       false,    false,  false,  "real time signal 9");
+  AddSignal(44, "SIGRTMIN+10",      false,    false,  false,  "real time signal 10");
+  AddSignal(45, "SIGRTMIN+11",      false,    false,  false,  "real time signal 11");
+  AddSignal(46, "SIGRTMIN+12",      false,    false,  false,  "real time signal 12");
+  AddSignal(47, "SIGRTMIN+13",      false,    false,  false,  "real time signal 13");
+  AddSignal(48, "SIGRTMIN+14",      false,    false,  false,  "real time signal 14");
+  AddSignal(49, "SIGRTMIN+15",      false,    false,  false,  "real time signal 15");
+  AddSignal(50, "SIGRTMAX-14",      false,    false,  false,  "real time signal 16"); // switching to SIGRTMAX-xxx to match "kill -l" output
+  AddSignal(51, "SIGRTMAX-13",      false,    false,  false,  "real time signal 17");
+  AddSignal(52, "SIGRTMAX-12",      false,    false,  false,  "real time signal 18");
+  AddSignal(53, "SIGRTMAX-11",      false,    false,  false,  "real time signal 19");
+  AddSignal(54, "SIGRTMAX-10",      false,    false,  false,  "real time signal 20");
+  AddSignal(55, "SIGRTMAX-9",       false,    false,  false,  "real time signal 21");
+  AddSignal(56, "SIGRTMAX-8",       false,    false,  false,  "real time signal 22");
+  AddSignal(57, "SIGRTMAX-7",       false,    false,  false,  "real time signal 23");
+  AddSignal(58, "SIGRTMAX-6",       false,    false,  false,  "real time signal 24");
+  AddSignal(59, "SIGRTMAX-5",       false,    false,  false,  "real time signal 25");
+  AddSignal(60, "SIGRTMAX-4",       false,    false,  false,  "real time signal 26");
+  AddSignal(61, "SIGRTMAX-3",       false,    false,  false,  "real time signal 27");
+  AddSignal(62, "SIGRTMAX-2",       false,    false,  false,  "real time signal 28");
+  AddSignal(63, "SIGRTMAX-1",       false,    false,  false,  "real time signal 29");
+  AddSignal(64, "SIGRTMAX",         false,    false,  false,  "real time signal 30");
+  // clang-format on
 }

diff  --git a/lldb/source/Target/UnixSignals.cpp b/lldb/source/Target/UnixSignals.cpp
index 84a2ef67ac29..4ec2e25c7e3b 100644
--- a/lldb/source/Target/UnixSignals.cpp
+++ b/lldb/source/Target/UnixSignals.cpp
@@ -74,39 +74,39 @@ void UnixSignals::Reset() {
   m_signals.clear();
 
   // clang-format off
-  //        SIGNO   NAME          SUPPRESS  STOP    NOTIFY  DESCRIPTION
-  //        ======  ============  ========  ======  ======  ===================================================
-  AddSignal(1,      "SIGHUP",     false,    true,   true,   "hangup");
-  AddSignal(2,      "SIGINT",     true,     true,   true,   "interrupt");
-  AddSignal(3,      "SIGQUIT",    false,    true,   true,   "quit");
-  AddSignal(4,      "SIGILL",     false,    true,   true,   "illegal instruction");
-  AddSignal(5,      "SIGTRAP",    true,     true,   true,   "trace trap (not reset when caught)");
-  AddSignal(6,      "SIGABRT",    false,    true,   true,   "abort()");
-  AddSignal(7,      "SIGEMT",     false,    true,   true,   "pollable event");
-  AddSignal(8,      "SIGFPE",     false,    true,   true,   "floating point exception");
-  AddSignal(9,      "SIGKILL",    false,    true,   true,   "kill");
-  AddSignal(10,     "SIGBUS",     false,    true,   true,   "bus error");
-  AddSignal(11,     "SIGSEGV",    false,    true,   true,   "segmentation violation");
-  AddSignal(12,     "SIGSYS",     false,    true,   true,   "bad argument to system call");
-  AddSignal(13,     "SIGPIPE",    false,    false,  false,  "write on a pipe with no one to read it");
-  AddSignal(14,     "SIGALRM",    false,    false,  false,  "alarm clock");
-  AddSignal(15,     "SIGTERM",    false,    true,   true,   "software termination signal from kill");
-  AddSignal(16,     "SIGURG",     false,    false,  false,  "urgent condition on IO channel");
-  AddSignal(17,     "SIGSTOP",    true,     true,   true,   "sendable stop signal not from tty");
-  AddSignal(18,     "SIGTSTP",    false,    true,   true,   "stop signal from tty");
-  AddSignal(19,     "SIGCONT",    false,    false,  true,   "continue a stopped process");
-  AddSignal(20,     "SIGCHLD",    false,    false,  false,  "to parent on child stop or exit");
-  AddSignal(21,     "SIGTTIN",    false,    true,   true,   "to readers process group upon background tty read");
-  AddSignal(22,     "SIGTTOU",    false,    true,   true,   "to readers process group upon background tty write");
-  AddSignal(23,     "SIGIO",      false,    false,  false,  "input/output possible signal");
-  AddSignal(24,     "SIGXCPU",    false,    true,   true,   "exceeded CPU time limit");
-  AddSignal(25,     "SIGXFSZ",    false,    true,   true,   "exceeded file size limit");
-  AddSignal(26,     "SIGVTALRM",  false,    false,  false,  "virtual time alarm");
-  AddSignal(27,     "SIGPROF",    false,    false,  false,  "profiling time alarm");
-  AddSignal(28,     "SIGWINCH",   false,    false,  false,  "window size changes");
-  AddSignal(29,     "SIGINFO",    false,    true,   true,   "information request");
-  AddSignal(30,     "SIGUSR1",    false,    true,   true,   "user defined signal 1");
-  AddSignal(31,     "SIGUSR2",    false,    true,   true,   "user defined signal 2");
+  //        SIGNO   NAME            SUPPRESS  STOP    NOTIFY  DESCRIPTION
+  //        ======  ==============  ========  ======  ======  ===================================================
+  AddSignal(1,      "SIGHUP",       false,    true,   true,   "hangup");
+  AddSignal(2,      "SIGINT",       true,     true,   true,   "interrupt");
+  AddSignal(3,      "SIGQUIT",      false,    true,   true,   "quit");
+  AddSignal(4,      "SIGILL",       false,    true,   true,   "illegal instruction");
+  AddSignal(5,      "SIGTRAP",      true,     true,   true,   "trace trap (not reset when caught)");
+  AddSignal(6,      "SIGABRT",      false,    true,   true,   "abort()");
+  AddSignal(7,      "SIGEMT",       false,    true,   true,   "pollable event");
+  AddSignal(8,      "SIGFPE",       false,    true,   true,   "floating point exception");
+  AddSignal(9,      "SIGKILL",      false,    true,   true,   "kill");
+  AddSignal(10,     "SIGBUS",       false,    true,   true,   "bus error");
+  AddSignal(11,     "SIGSEGV",      false,    true,   true,   "segmentation violation");
+  AddSignal(12,     "SIGSYS",       false,    true,   true,   "bad argument to system call");
+  AddSignal(13,     "SIGPIPE",      false,    false,  false,  "write on a pipe with no one to read it");
+  AddSignal(14,     "SIGALRM",      false,    false,  false,  "alarm clock");
+  AddSignal(15,     "SIGTERM",      false,    true,   true,   "software termination signal from kill");
+  AddSignal(16,     "SIGURG",       false,    false,  false,  "urgent condition on IO channel");
+  AddSignal(17,     "SIGSTOP",      true,     true,   true,   "sendable stop signal not from tty");
+  AddSignal(18,     "SIGTSTP",      false,    true,   true,   "stop signal from tty");
+  AddSignal(19,     "SIGCONT",      false,    false,  true,   "continue a stopped process");
+  AddSignal(20,     "SIGCHLD",      false,    false,  false,  "to parent on child stop or exit");
+  AddSignal(21,     "SIGTTIN",      false,    true,   true,   "to readers process group upon background tty read");
+  AddSignal(22,     "SIGTTOU",      false,    true,   true,   "to readers process group upon background tty write");
+  AddSignal(23,     "SIGIO",        false,    false,  false,  "input/output possible signal");
+  AddSignal(24,     "SIGXCPU",      false,    true,   true,   "exceeded CPU time limit");
+  AddSignal(25,     "SIGXFSZ",      false,    true,   true,   "exceeded file size limit");
+  AddSignal(26,     "SIGVTALRM",    false,    false,  false,  "virtual time alarm");
+  AddSignal(27,     "SIGPROF",      false,    false,  false,  "profiling time alarm");
+  AddSignal(28,     "SIGWINCH",     false,    false,  false,  "window size changes");
+  AddSignal(29,     "SIGINFO",      false,    true,   true,   "information request");
+  AddSignal(30,     "SIGUSR1",      false,    true,   true,   "user defined signal 1");
+  AddSignal(31,     "SIGUSR2",      false,    true,   true,   "user defined signal 2");
   // clang-format on
 }
 


        


More information about the lldb-commits mailing list