Commit | Line | Data |
---|---|---|
a19cae16 JK |
1 | /* Target signal numbers for GDB and the GDB remote protocol. |
2 | Copyright 2010 Free Software Foundation, Inc. | |
3 | ||
4 | This file is part of GDB. | |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 3 of the License, or | |
9 | (at your option) any later version. | |
10 | ||
11 | This program is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
18 | ||
19 | /* Used some places (e.g. stop_signal) to record the concept that | |
20 | there is no signal. */ | |
21 | SET (TARGET_SIGNAL_0, 0, "0", "Signal 0") | |
22 | #define TARGET_SIGNAL_FIRST TARGET_SIGNAL_0 | |
23 | SET (TARGET_SIGNAL_HUP, 1, "SIGHUP", "Hangup") | |
24 | SET (TARGET_SIGNAL_INT, 2, "SIGINT", "Interrupt") | |
25 | SET (TARGET_SIGNAL_QUIT, 3, "SIGQUIT", "Quit") | |
26 | SET (TARGET_SIGNAL_ILL, 4, "SIGILL", "Illegal instruction") | |
27 | SET (TARGET_SIGNAL_TRAP, 5, "SIGTRAP", "Trace/breakpoint trap") | |
28 | SET (TARGET_SIGNAL_ABRT, 6, "SIGABRT", "Aborted") | |
29 | SET (TARGET_SIGNAL_EMT, 7, "SIGEMT", "Emulation trap") | |
30 | SET (TARGET_SIGNAL_FPE, 8, "SIGFPE", "Arithmetic exception") | |
31 | SET (TARGET_SIGNAL_KILL, 9, "SIGKILL", "Killed") | |
32 | SET (TARGET_SIGNAL_BUS, 10, "SIGBUS", "Bus error") | |
33 | SET (TARGET_SIGNAL_SEGV, 11, "SIGSEGV", "Segmentation fault") | |
34 | SET (TARGET_SIGNAL_SYS, 12, "SIGSYS", "Bad system call") | |
35 | SET (TARGET_SIGNAL_PIPE, 13, "SIGPIPE", "Broken pipe") | |
36 | SET (TARGET_SIGNAL_ALRM, 14, "SIGALRM", "Alarm clock") | |
37 | SET (TARGET_SIGNAL_TERM, 15, "SIGTERM", "Terminated") | |
38 | SET (TARGET_SIGNAL_URG, 16, "SIGURG", "Urgent I/O condition") | |
39 | SET (TARGET_SIGNAL_STOP, 17, "SIGSTOP", "Stopped (signal)") | |
40 | SET (TARGET_SIGNAL_TSTP, 18, "SIGTSTP", "Stopped (user)") | |
41 | SET (TARGET_SIGNAL_CONT, 19, "SIGCONT", "Continued") | |
42 | SET (TARGET_SIGNAL_CHLD, 20, "SIGCHLD", "Child status changed") | |
43 | SET (TARGET_SIGNAL_TTIN, 21, "SIGTTIN", "Stopped (tty input)") | |
44 | SET (TARGET_SIGNAL_TTOU, 22, "SIGTTOU", "Stopped (tty output)") | |
45 | SET (TARGET_SIGNAL_IO, 23, "SIGIO", "I/O possible") | |
46 | SET (TARGET_SIGNAL_XCPU, 24, "SIGXCPU", "CPU time limit exceeded") | |
47 | SET (TARGET_SIGNAL_XFSZ, 25, "SIGXFSZ", "File size limit exceeded") | |
48 | SET (TARGET_SIGNAL_VTALRM, 26, "SIGVTALRM", "Virtual timer expired") | |
49 | SET (TARGET_SIGNAL_PROF, 27, "SIGPROF", "Profiling timer expired") | |
50 | SET (TARGET_SIGNAL_WINCH, 28, "SIGWINCH", "Window size changed") | |
51 | SET (TARGET_SIGNAL_LOST, 29, "SIGLOST", "Resource lost") | |
52 | SET (TARGET_SIGNAL_USR1, 30, "SIGUSR1", "User defined signal 1") | |
53 | SET (TARGET_SIGNAL_USR2, 31, "SIGUSR2", "User defined signal 2") | |
54 | SET (TARGET_SIGNAL_PWR, 32, "SIGPWR", "Power fail/restart") | |
55 | /* Similar to SIGIO. Perhaps they should have the same number. */ | |
56 | SET (TARGET_SIGNAL_POLL, 33, "SIGPOLL", "Pollable event occurred") | |
57 | SET (TARGET_SIGNAL_WIND, 34, "SIGWIND", "SIGWIND") | |
58 | SET (TARGET_SIGNAL_PHONE, 35, "SIGPHONE", "SIGPHONE") | |
59 | SET (TARGET_SIGNAL_WAITING, 36, "SIGWAITING", "Process's LWPs are blocked") | |
60 | SET (TARGET_SIGNAL_LWP, 37, "SIGLWP", "Signal LWP") | |
61 | SET (TARGET_SIGNAL_DANGER, 38, "SIGDANGER", "Swap space dangerously low") | |
62 | SET (TARGET_SIGNAL_GRANT, 39, "SIGGRANT", "Monitor mode granted") | |
63 | SET (TARGET_SIGNAL_RETRACT, 40, "SIGRETRACT", | |
64 | "Need to relinquish monitor mode") | |
65 | SET (TARGET_SIGNAL_MSG, 41, "SIGMSG", "Monitor mode data available") | |
66 | SET (TARGET_SIGNAL_SOUND, 42, "SIGSOUND", "Sound completed") | |
67 | SET (TARGET_SIGNAL_SAK, 43, "SIGSAK", "Secure attention") | |
68 | SET (TARGET_SIGNAL_PRIO, 44, "SIGPRIO", "SIGPRIO") | |
69 | SET (TARGET_SIGNAL_REALTIME_33, 45, "SIG33", "Real-time event 33") | |
70 | SET (TARGET_SIGNAL_REALTIME_34, 46, "SIG34", "Real-time event 34") | |
71 | SET (TARGET_SIGNAL_REALTIME_35, 47, "SIG35", "Real-time event 35") | |
72 | SET (TARGET_SIGNAL_REALTIME_36, 48, "SIG36", "Real-time event 36") | |
73 | SET (TARGET_SIGNAL_REALTIME_37, 49, "SIG37", "Real-time event 37") | |
74 | SET (TARGET_SIGNAL_REALTIME_38, 50, "SIG38", "Real-time event 38") | |
75 | SET (TARGET_SIGNAL_REALTIME_39, 51, "SIG39", "Real-time event 39") | |
76 | SET (TARGET_SIGNAL_REALTIME_40, 52, "SIG40", "Real-time event 40") | |
77 | SET (TARGET_SIGNAL_REALTIME_41, 53, "SIG41", "Real-time event 41") | |
78 | SET (TARGET_SIGNAL_REALTIME_42, 54, "SIG42", "Real-time event 42") | |
79 | SET (TARGET_SIGNAL_REALTIME_43, 55, "SIG43", "Real-time event 43") | |
80 | SET (TARGET_SIGNAL_REALTIME_44, 56, "SIG44", "Real-time event 44") | |
81 | SET (TARGET_SIGNAL_REALTIME_45, 57, "SIG45", "Real-time event 45") | |
82 | SET (TARGET_SIGNAL_REALTIME_46, 58, "SIG46", "Real-time event 46") | |
83 | SET (TARGET_SIGNAL_REALTIME_47, 59, "SIG47", "Real-time event 47") | |
84 | SET (TARGET_SIGNAL_REALTIME_48, 60, "SIG48", "Real-time event 48") | |
85 | SET (TARGET_SIGNAL_REALTIME_49, 61, "SIG49", "Real-time event 49") | |
86 | SET (TARGET_SIGNAL_REALTIME_50, 62, "SIG50", "Real-time event 50") | |
87 | SET (TARGET_SIGNAL_REALTIME_51, 63, "SIG51", "Real-time event 51") | |
88 | SET (TARGET_SIGNAL_REALTIME_52, 64, "SIG52", "Real-time event 52") | |
89 | SET (TARGET_SIGNAL_REALTIME_53, 65, "SIG53", "Real-time event 53") | |
90 | SET (TARGET_SIGNAL_REALTIME_54, 66, "SIG54", "Real-time event 54") | |
91 | SET (TARGET_SIGNAL_REALTIME_55, 67, "SIG55", "Real-time event 55") | |
92 | SET (TARGET_SIGNAL_REALTIME_56, 68, "SIG56", "Real-time event 56") | |
93 | SET (TARGET_SIGNAL_REALTIME_57, 69, "SIG57", "Real-time event 57") | |
94 | SET (TARGET_SIGNAL_REALTIME_58, 70, "SIG58", "Real-time event 58") | |
95 | SET (TARGET_SIGNAL_REALTIME_59, 71, "SIG59", "Real-time event 59") | |
96 | SET (TARGET_SIGNAL_REALTIME_60, 72, "SIG60", "Real-time event 60") | |
97 | SET (TARGET_SIGNAL_REALTIME_61, 73, "SIG61", "Real-time event 61") | |
98 | SET (TARGET_SIGNAL_REALTIME_62, 74, "SIG62", "Real-time event 62") | |
99 | SET (TARGET_SIGNAL_REALTIME_63, 75, "SIG63", "Real-time event 63") | |
100 | ||
101 | /* Used internally by Solaris threads. See signal(5) on Solaris. */ | |
102 | SET (TARGET_SIGNAL_CANCEL, 76, "SIGCANCEL", "LWP internal signal") | |
103 | ||
104 | /* Yes, this pains me, too. But LynxOS didn't have SIG32, and now | |
105 | GNU/Linux does, and we can't disturb the numbering, since it's | |
106 | part of the remote protocol. Note that in some GDB's | |
107 | TARGET_SIGNAL_REALTIME_32 is number 76. */ | |
108 | ANY (TARGET_SIGNAL_REALTIME_32, "SIG32", "Real-time event 32") | |
109 | /* Yet another pain, IRIX 6 has SIG64. */ | |
110 | ANY (TARGET_SIGNAL_REALTIME_64, "SIG64", "Real-time event 64") | |
111 | /* Yet another pain, GNU/Linux MIPS might go up to 128. */ | |
112 | ANY (TARGET_SIGNAL_REALTIME_65, "SIG65", "Real-time event 65") | |
113 | ANY (TARGET_SIGNAL_REALTIME_66, "SIG66", "Real-time event 66") | |
114 | ANY (TARGET_SIGNAL_REALTIME_67, "SIG67", "Real-time event 67") | |
115 | ANY (TARGET_SIGNAL_REALTIME_68, "SIG68", "Real-time event 68") | |
116 | ANY (TARGET_SIGNAL_REALTIME_69, "SIG69", "Real-time event 69") | |
117 | ANY (TARGET_SIGNAL_REALTIME_70, "SIG70", "Real-time event 70") | |
118 | ANY (TARGET_SIGNAL_REALTIME_71, "SIG71", "Real-time event 71") | |
119 | ANY (TARGET_SIGNAL_REALTIME_72, "SIG72", "Real-time event 72") | |
120 | ANY (TARGET_SIGNAL_REALTIME_73, "SIG73", "Real-time event 73") | |
121 | ANY (TARGET_SIGNAL_REALTIME_74, "SIG74", "Real-time event 74") | |
122 | ANY (TARGET_SIGNAL_REALTIME_75, "SIG75", "Real-time event 75") | |
123 | ANY (TARGET_SIGNAL_REALTIME_76, "SIG76", "Real-time event 76") | |
124 | ANY (TARGET_SIGNAL_REALTIME_77, "SIG77", "Real-time event 77") | |
125 | ANY (TARGET_SIGNAL_REALTIME_78, "SIG78", "Real-time event 78") | |
126 | ANY (TARGET_SIGNAL_REALTIME_79, "SIG79", "Real-time event 79") | |
127 | ANY (TARGET_SIGNAL_REALTIME_80, "SIG80", "Real-time event 80") | |
128 | ANY (TARGET_SIGNAL_REALTIME_81, "SIG81", "Real-time event 81") | |
129 | ANY (TARGET_SIGNAL_REALTIME_82, "SIG82", "Real-time event 82") | |
130 | ANY (TARGET_SIGNAL_REALTIME_83, "SIG83", "Real-time event 83") | |
131 | ANY (TARGET_SIGNAL_REALTIME_84, "SIG84", "Real-time event 84") | |
132 | ANY (TARGET_SIGNAL_REALTIME_85, "SIG85", "Real-time event 85") | |
133 | ANY (TARGET_SIGNAL_REALTIME_86, "SIG86", "Real-time event 86") | |
134 | ANY (TARGET_SIGNAL_REALTIME_87, "SIG87", "Real-time event 87") | |
135 | ANY (TARGET_SIGNAL_REALTIME_88, "SIG88", "Real-time event 88") | |
136 | ANY (TARGET_SIGNAL_REALTIME_89, "SIG89", "Real-time event 89") | |
137 | ANY (TARGET_SIGNAL_REALTIME_90, "SIG90", "Real-time event 90") | |
138 | ANY (TARGET_SIGNAL_REALTIME_91, "SIG91", "Real-time event 91") | |
139 | ANY (TARGET_SIGNAL_REALTIME_92, "SIG92", "Real-time event 92") | |
140 | ANY (TARGET_SIGNAL_REALTIME_93, "SIG93", "Real-time event 93") | |
141 | ANY (TARGET_SIGNAL_REALTIME_94, "SIG94", "Real-time event 94") | |
142 | ANY (TARGET_SIGNAL_REALTIME_95, "SIG95", "Real-time event 95") | |
143 | ANY (TARGET_SIGNAL_REALTIME_96, "SIG96", "Real-time event 96") | |
144 | ANY (TARGET_SIGNAL_REALTIME_97, "SIG97", "Real-time event 97") | |
145 | ANY (TARGET_SIGNAL_REALTIME_98, "SIG98", "Real-time event 98") | |
146 | ANY (TARGET_SIGNAL_REALTIME_99, "SIG99", "Real-time event 99") | |
147 | ANY (TARGET_SIGNAL_REALTIME_100, "SIG100", "Real-time event 100") | |
148 | ANY (TARGET_SIGNAL_REALTIME_101, "SIG101", "Real-time event 101") | |
149 | ANY (TARGET_SIGNAL_REALTIME_102, "SIG102", "Real-time event 102") | |
150 | ANY (TARGET_SIGNAL_REALTIME_103, "SIG103", "Real-time event 103") | |
151 | ANY (TARGET_SIGNAL_REALTIME_104, "SIG104", "Real-time event 104") | |
152 | ANY (TARGET_SIGNAL_REALTIME_105, "SIG105", "Real-time event 105") | |
153 | ANY (TARGET_SIGNAL_REALTIME_106, "SIG106", "Real-time event 106") | |
154 | ANY (TARGET_SIGNAL_REALTIME_107, "SIG107", "Real-time event 107") | |
155 | ANY (TARGET_SIGNAL_REALTIME_108, "SIG108", "Real-time event 108") | |
156 | ANY (TARGET_SIGNAL_REALTIME_109, "SIG109", "Real-time event 109") | |
157 | ANY (TARGET_SIGNAL_REALTIME_110, "SIG110", "Real-time event 110") | |
158 | ANY (TARGET_SIGNAL_REALTIME_111, "SIG111", "Real-time event 111") | |
159 | ANY (TARGET_SIGNAL_REALTIME_112, "SIG112", "Real-time event 112") | |
160 | ANY (TARGET_SIGNAL_REALTIME_113, "SIG113", "Real-time event 113") | |
161 | ANY (TARGET_SIGNAL_REALTIME_114, "SIG114", "Real-time event 114") | |
162 | ANY (TARGET_SIGNAL_REALTIME_115, "SIG115", "Real-time event 115") | |
163 | ANY (TARGET_SIGNAL_REALTIME_116, "SIG116", "Real-time event 116") | |
164 | ANY (TARGET_SIGNAL_REALTIME_117, "SIG117", "Real-time event 117") | |
165 | ANY (TARGET_SIGNAL_REALTIME_118, "SIG118", "Real-time event 118") | |
166 | ANY (TARGET_SIGNAL_REALTIME_119, "SIG119", "Real-time event 119") | |
167 | ANY (TARGET_SIGNAL_REALTIME_120, "SIG120", "Real-time event 120") | |
168 | ANY (TARGET_SIGNAL_REALTIME_121, "SIG121", "Real-time event 121") | |
169 | ANY (TARGET_SIGNAL_REALTIME_122, "SIG122", "Real-time event 122") | |
170 | ANY (TARGET_SIGNAL_REALTIME_123, "SIG123", "Real-time event 123") | |
171 | ANY (TARGET_SIGNAL_REALTIME_124, "SIG124", "Real-time event 124") | |
172 | ANY (TARGET_SIGNAL_REALTIME_125, "SIG125", "Real-time event 125") | |
173 | ANY (TARGET_SIGNAL_REALTIME_126, "SIG126", "Real-time event 126") | |
174 | ANY (TARGET_SIGNAL_REALTIME_127, "SIG127", "Real-time event 127") | |
175 | ||
176 | ANY (TARGET_SIGNAL_INFO, "SIGINFO", "Information request") | |
177 | ||
178 | /* Some signal we don't know about. */ | |
179 | ANY (TARGET_SIGNAL_UNKNOWN, NULL, "Unknown signal") | |
180 | ||
181 | /* Use whatever signal we use when one is not specifically specified | |
182 | (for passing to proceed and so on). */ | |
183 | ANY (TARGET_SIGNAL_DEFAULT, NULL, | |
184 | "Internal error: printing TARGET_SIGNAL_DEFAULT") | |
185 | ||
186 | /* Mach exceptions. In versions of GDB before 5.2, these were just before | |
187 | TARGET_SIGNAL_INFO if you were compiling on a Mach host (and missing | |
188 | otherwise). */ | |
189 | ANY (TARGET_EXC_BAD_ACCESS, "EXC_BAD_ACCESS", "Could not access memory") | |
190 | ANY (TARGET_EXC_BAD_INSTRUCTION, "EXC_BAD_INSTRUCTION", | |
191 | "Illegal instruction/operand") | |
192 | ANY (TARGET_EXC_ARITHMETIC, "EXC_ARITHMETIC", "Arithmetic exception") | |
193 | ANY (TARGET_EXC_EMULATION, "EXC_EMULATION", "Emulation instruction") | |
194 | ANY (TARGET_EXC_SOFTWARE, "EXC_SOFTWARE", "Software generated exception") | |
195 | ANY (TARGET_EXC_BREAKPOINT, "EXC_BREAKPOINT", "Breakpoint") | |
196 | ||
197 | /* If you are adding a new signal, add it just above this comment. */ | |
198 | ||
199 | /* Last and unused enum value, for sizing arrays, etc. */ | |
200 | ANY (TARGET_SIGNAL_LAST, NULL, "TARGET_SIGNAL_MAGIC") |