1435933ddSDimitry Andric //===-- MipsLinuxSignals.cpp ----------------------------------------*- C++
2435933ddSDimitry Andric //-*-===//
31c3bbb01SEd Maste //
41c3bbb01SEd Maste // The LLVM Compiler Infrastructure
51c3bbb01SEd Maste //
61c3bbb01SEd Maste // This file is distributed under the University of Illinois Open Source
71c3bbb01SEd Maste // License. See LICENSE.TXT for details.
81c3bbb01SEd Maste //
91c3bbb01SEd Maste //===----------------------------------------------------------------------===//
101c3bbb01SEd Maste
111c3bbb01SEd Maste #include "MipsLinuxSignals.h"
121c3bbb01SEd Maste
13b91a7dfcSDimitry Andric using namespace lldb_private;
141c3bbb01SEd Maste
MipsLinuxSignals()15435933ddSDimitry Andric MipsLinuxSignals::MipsLinuxSignals() : UnixSignals() { Reset(); }
161c3bbb01SEd Maste
Reset()17435933ddSDimitry Andric void MipsLinuxSignals::Reset() {
181c3bbb01SEd Maste m_signals.clear();
199f2f44ceSEd Maste // SIGNO NAME SUPPRESS STOP NOTIFY DESCRIPTION ALIAS
20435933ddSDimitry Andric // ===== =========== ======== ===== ======
21435933ddSDimitry Andric // ====================================== ========
229f2f44ceSEd Maste AddSignal(1, "SIGHUP", false, true, true, "hangup");
239f2f44ceSEd Maste AddSignal(2, "SIGINT", true, true, true, "interrupt");
249f2f44ceSEd Maste AddSignal(3, "SIGQUIT", false, true, true, "quit");
259f2f44ceSEd Maste AddSignal(4, "SIGILL", false, true, true, "illegal instruction");
26435933ddSDimitry Andric AddSignal(5, "SIGTRAP", true, true, true,
27435933ddSDimitry Andric "trace trap (not reset when caught)");
289f2f44ceSEd Maste AddSignal(6, "SIGABRT", false, true, true, "abort()/IOT trap", "SIGIOT");
299f2f44ceSEd Maste AddSignal(7, "SIGEMT", false, true, true, "terminate process with core dump");
309f2f44ceSEd Maste AddSignal(8, "SIGFPE", false, true, true, "floating point exception");
319f2f44ceSEd Maste AddSignal(9, "SIGKILL", false, true, true, "kill");
329f2f44ceSEd Maste AddSignal(10, "SIGBUS", false, true, true, "bus error");
339f2f44ceSEd Maste AddSignal(11, "SIGSEGV", false, true, true, "segmentation violation");
349f2f44ceSEd Maste AddSignal(12, "SIGSYS", false, true, true, "invalid system call");
35435933ddSDimitry Andric AddSignal(13, "SIGPIPE", false, true, true,
36435933ddSDimitry Andric "write to pipe with reading end closed");
379f2f44ceSEd Maste AddSignal(14, "SIGALRM", false, false, false, "alarm");
389f2f44ceSEd Maste AddSignal(15, "SIGTERM", false, true, true, "termination requested");
399f2f44ceSEd Maste AddSignal(16, "SIGUSR1", false, true, true, "user defined signal 1");
409f2f44ceSEd Maste AddSignal(17, "SIGUSR2", false, true, true, "user defined signal 2");
41435933ddSDimitry Andric AddSignal(18, "SIGCHLD", false, false, true, "child status has changed",
42435933ddSDimitry Andric "SIGCLD");
439f2f44ceSEd Maste AddSignal(19, "SIGPWR", false, true, true, "power failure");
449f2f44ceSEd Maste AddSignal(20, "SIGWINCH", false, true, true, "window size changes");
459f2f44ceSEd Maste AddSignal(21, "SIGURG", false, true, true, "urgent data on socket");
46435933ddSDimitry Andric AddSignal(22, "SIGIO", false, true, true, "input/output ready/Pollable event",
47435933ddSDimitry Andric "SIGPOLL");
489f2f44ceSEd Maste AddSignal(23, "SIGSTOP", true, true, true, "process stop");
499f2f44ceSEd Maste AddSignal(24, "SIGTSTP", false, true, true, "tty stop");
509f2f44ceSEd Maste AddSignal(25, "SIGCONT", false, true, true, "process continue");
519f2f44ceSEd Maste AddSignal(26, "SIGTTIN", false, true, true, "background tty read");
529f2f44ceSEd Maste AddSignal(27, "SIGTTOU", false, true, true, "background tty write");
539f2f44ceSEd Maste AddSignal(28, "SIGVTALRM", false, true, true, "virtual time alarm");
549f2f44ceSEd Maste AddSignal(29, "SIGPROF", false, false, false, "profiling time alarm");
559f2f44ceSEd Maste AddSignal(30, "SIGXCPU", false, true, true, "CPU resource exceeded");
569f2f44ceSEd Maste AddSignal(31, "SIGXFSZ", false, true, true, "file size limit exceeded");
57435933ddSDimitry Andric AddSignal(32, "SIG32", false, false, false,
58435933ddSDimitry Andric "threading library internal signal 1");
59435933ddSDimitry Andric AddSignal(33, "SIG33", false, false, false,
60435933ddSDimitry Andric "threading library internal signal 2");
619f2f44ceSEd Maste AddSignal(34, "SIGRTMIN", false, false, false, "real time signal 0");
629f2f44ceSEd Maste AddSignal(35, "SIGRTMIN+1", false, false, false, "real time signal 1");
639f2f44ceSEd Maste AddSignal(36, "SIGRTMIN+2", false, false, false, "real time signal 2");
649f2f44ceSEd Maste AddSignal(37, "SIGRTMIN+3", false, false, false, "real time signal 3");
659f2f44ceSEd Maste AddSignal(38, "SIGRTMIN+4", false, false, false, "real time signal 4");
669f2f44ceSEd Maste AddSignal(39, "SIGRTMIN+5", false, false, false, "real time signal 5");
679f2f44ceSEd Maste AddSignal(40, "SIGRTMIN+6", false, false, false, "real time signal 6");
689f2f44ceSEd Maste AddSignal(41, "SIGRTMIN+7", false, false, false, "real time signal 7");
699f2f44ceSEd Maste AddSignal(42, "SIGRTMIN+8", false, false, false, "real time signal 8");
709f2f44ceSEd Maste AddSignal(43, "SIGRTMIN+9", false, false, false, "real time signal 9");
719f2f44ceSEd Maste AddSignal(44, "SIGRTMIN+10", false, false, false, "real time signal 10");
729f2f44ceSEd Maste AddSignal(45, "SIGRTMIN+11", false, false, false, "real time signal 11");
739f2f44ceSEd Maste AddSignal(46, "SIGRTMIN+12", false, false, false, "real time signal 12");
749f2f44ceSEd Maste AddSignal(47, "SIGRTMIN+13", false, false, false, "real time signal 13");
759f2f44ceSEd Maste AddSignal(48, "SIGRTMIN+14", false, false, false, "real time signal 14");
769f2f44ceSEd Maste AddSignal(49, "SIGRTMIN+15", false, false, false, "real time signal 15");
77435933ddSDimitry Andric AddSignal(50, "SIGRTMAX-14", false, false, false,
78435933ddSDimitry Andric "real time signal 16"); // switching to SIGRTMAX-xxx to match "kill
79435933ddSDimitry Andric // -l" output
809f2f44ceSEd Maste AddSignal(51, "SIGRTMAX-13", false, false, false, "real time signal 17");
819f2f44ceSEd Maste AddSignal(52, "SIGRTMAX-12", false, false, false, "real time signal 18");
829f2f44ceSEd Maste AddSignal(53, "SIGRTMAX-11", false, false, false, "real time signal 19");
839f2f44ceSEd Maste AddSignal(54, "SIGRTMAX-10", false, false, false, "real time signal 20");
849f2f44ceSEd Maste AddSignal(55, "SIGRTMAX-9", false, false, false, "real time signal 21");
859f2f44ceSEd Maste AddSignal(56, "SIGRTMAX-8", false, false, false, "real time signal 22");
869f2f44ceSEd Maste AddSignal(57, "SIGRTMAX-7", false, false, false, "real time signal 23");
879f2f44ceSEd Maste AddSignal(58, "SIGRTMAX-6", false, false, false, "real time signal 24");
889f2f44ceSEd Maste AddSignal(59, "SIGRTMAX-5", false, false, false, "real time signal 25");
899f2f44ceSEd Maste AddSignal(60, "SIGRTMAX-4", false, false, false, "real time signal 26");
909f2f44ceSEd Maste AddSignal(61, "SIGRTMAX-3", false, false, false, "real time signal 27");
919f2f44ceSEd Maste AddSignal(62, "SIGRTMAX-2", false, false, false, "real time signal 28");
929f2f44ceSEd Maste AddSignal(63, "SIGRTMAX-1", false, false, false, "real time signal 29");
939f2f44ceSEd Maste AddSignal(64, "SIGRTMAX", false, false, false, "real time signal 30");
941c3bbb01SEd Maste }
95