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