OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [include/] [gdb/] [signals.h] - Blame information for rev 294

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* Target signal numbers for GDB and the GDB remote protocol.
2
   Copyright 1986, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
3 225 jeremybenn
   1998, 1999, 2000, 2001, 2002, 2007, 2008, 2009
4
   Free Software Foundation, Inc.
5 24 jeremybenn
 
6
   This file is part of GDB.
7
 
8
   This program is free software; you can redistribute it and/or modify
9
   it under the terms of the GNU General Public License as published by
10
   the Free Software Foundation; either version 3 of the License, or
11
   (at your option) any later version.
12
 
13
   This program is distributed in the hope that it will be useful,
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20
 
21
#ifndef GDB_SIGNALS_H
22
#define GDB_SIGNALS_H
23
 
24
/* The numbering of these signals is chosen to match traditional unix
25
   signals (insofar as various unices use the same numbers, anyway).
26
   It is also the numbering of the GDB remote protocol.  Other remote
27
   protocols, if they use a different numbering, should make sure to
28
   translate appropriately.
29
 
30
   Since these numbers have actually made it out into other software
31
   (stubs, etc.), you mustn't disturb the assigned numbering.  If you
32
   need to add new signals here, add them to the end of the explicitly
33
   numbered signals, at the comment marker.  Add them unconditionally,
34
   not within any #if or #ifdef.
35
 
36
   This is based strongly on Unix/POSIX signals for several reasons:
37
   (1) This set of signals represents a widely-accepted attempt to
38
   represent events of this sort in a portable fashion, (2) we want a
39
   signal to make it from wait to child_wait to the user intact, (3) many
40
   remote protocols use a similar encoding.  However, it is
41
   recognized that this set of signals has limitations (such as not
42
   distinguishing between various kinds of SIGSEGV, or not
43
   distinguishing hitting a breakpoint from finishing a single step).
44
   So in the future we may get around this either by adding additional
45
   signals for breakpoint, single-step, etc., or by adding signal
46
   codes; the latter seems more in the spirit of what BSD, System V,
47
   etc. are doing to address these issues.  */
48
 
49
/* For an explanation of what each signal means, see
50
   target_signal_to_string.  */
51
 
52
enum target_signal
53
  {
54
    /* Used some places (e.g. stop_signal) to record the concept that
55
       there is no signal.  */
56
    TARGET_SIGNAL_0 = 0,
57
    TARGET_SIGNAL_FIRST = 0,
58
    TARGET_SIGNAL_HUP = 1,
59
    TARGET_SIGNAL_INT = 2,
60
    TARGET_SIGNAL_QUIT = 3,
61
    TARGET_SIGNAL_ILL = 4,
62
    TARGET_SIGNAL_TRAP = 5,
63
    TARGET_SIGNAL_ABRT = 6,
64
    TARGET_SIGNAL_EMT = 7,
65
    TARGET_SIGNAL_FPE = 8,
66
    TARGET_SIGNAL_KILL = 9,
67
    TARGET_SIGNAL_BUS = 10,
68
    TARGET_SIGNAL_SEGV = 11,
69
    TARGET_SIGNAL_SYS = 12,
70
    TARGET_SIGNAL_PIPE = 13,
71
    TARGET_SIGNAL_ALRM = 14,
72
    TARGET_SIGNAL_TERM = 15,
73
    TARGET_SIGNAL_URG = 16,
74
    TARGET_SIGNAL_STOP = 17,
75
    TARGET_SIGNAL_TSTP = 18,
76
    TARGET_SIGNAL_CONT = 19,
77
    TARGET_SIGNAL_CHLD = 20,
78
    TARGET_SIGNAL_TTIN = 21,
79
    TARGET_SIGNAL_TTOU = 22,
80
    TARGET_SIGNAL_IO = 23,
81
    TARGET_SIGNAL_XCPU = 24,
82
    TARGET_SIGNAL_XFSZ = 25,
83
    TARGET_SIGNAL_VTALRM = 26,
84
    TARGET_SIGNAL_PROF = 27,
85
    TARGET_SIGNAL_WINCH = 28,
86
    TARGET_SIGNAL_LOST = 29,
87
    TARGET_SIGNAL_USR1 = 30,
88
    TARGET_SIGNAL_USR2 = 31,
89
    TARGET_SIGNAL_PWR = 32,
90
    /* Similar to SIGIO.  Perhaps they should have the same number.  */
91
    TARGET_SIGNAL_POLL = 33,
92
    TARGET_SIGNAL_WIND = 34,
93
    TARGET_SIGNAL_PHONE = 35,
94
    TARGET_SIGNAL_WAITING = 36,
95
    TARGET_SIGNAL_LWP = 37,
96
    TARGET_SIGNAL_DANGER = 38,
97
    TARGET_SIGNAL_GRANT = 39,
98
    TARGET_SIGNAL_RETRACT = 40,
99
    TARGET_SIGNAL_MSG = 41,
100
    TARGET_SIGNAL_SOUND = 42,
101
    TARGET_SIGNAL_SAK = 43,
102
    TARGET_SIGNAL_PRIO = 44,
103
    TARGET_SIGNAL_REALTIME_33 = 45,
104
    TARGET_SIGNAL_REALTIME_34 = 46,
105
    TARGET_SIGNAL_REALTIME_35 = 47,
106
    TARGET_SIGNAL_REALTIME_36 = 48,
107
    TARGET_SIGNAL_REALTIME_37 = 49,
108
    TARGET_SIGNAL_REALTIME_38 = 50,
109
    TARGET_SIGNAL_REALTIME_39 = 51,
110
    TARGET_SIGNAL_REALTIME_40 = 52,
111
    TARGET_SIGNAL_REALTIME_41 = 53,
112
    TARGET_SIGNAL_REALTIME_42 = 54,
113
    TARGET_SIGNAL_REALTIME_43 = 55,
114
    TARGET_SIGNAL_REALTIME_44 = 56,
115
    TARGET_SIGNAL_REALTIME_45 = 57,
116
    TARGET_SIGNAL_REALTIME_46 = 58,
117
    TARGET_SIGNAL_REALTIME_47 = 59,
118
    TARGET_SIGNAL_REALTIME_48 = 60,
119
    TARGET_SIGNAL_REALTIME_49 = 61,
120
    TARGET_SIGNAL_REALTIME_50 = 62,
121
    TARGET_SIGNAL_REALTIME_51 = 63,
122
    TARGET_SIGNAL_REALTIME_52 = 64,
123
    TARGET_SIGNAL_REALTIME_53 = 65,
124
    TARGET_SIGNAL_REALTIME_54 = 66,
125
    TARGET_SIGNAL_REALTIME_55 = 67,
126
    TARGET_SIGNAL_REALTIME_56 = 68,
127
    TARGET_SIGNAL_REALTIME_57 = 69,
128
    TARGET_SIGNAL_REALTIME_58 = 70,
129
    TARGET_SIGNAL_REALTIME_59 = 71,
130
    TARGET_SIGNAL_REALTIME_60 = 72,
131
    TARGET_SIGNAL_REALTIME_61 = 73,
132
    TARGET_SIGNAL_REALTIME_62 = 74,
133
    TARGET_SIGNAL_REALTIME_63 = 75,
134
 
135
    /* Used internally by Solaris threads.  See signal(5) on Solaris.  */
136
    TARGET_SIGNAL_CANCEL = 76,
137
 
138
    /* Yes, this pains me, too.  But LynxOS didn't have SIG32, and now
139
       GNU/Linux does, and we can't disturb the numbering, since it's
140
       part of the remote protocol.  Note that in some GDB's
141
       TARGET_SIGNAL_REALTIME_32 is number 76.  */
142
    TARGET_SIGNAL_REALTIME_32,
143
    /* Yet another pain, IRIX 6 has SIG64. */
144
    TARGET_SIGNAL_REALTIME_64,
145
    /* Yet another pain, GNU/Linux MIPS might go up to 128. */
146
    TARGET_SIGNAL_REALTIME_65,
147
    TARGET_SIGNAL_REALTIME_66,
148
    TARGET_SIGNAL_REALTIME_67,
149
    TARGET_SIGNAL_REALTIME_68,
150
    TARGET_SIGNAL_REALTIME_69,
151
    TARGET_SIGNAL_REALTIME_70,
152
    TARGET_SIGNAL_REALTIME_71,
153
    TARGET_SIGNAL_REALTIME_72,
154
    TARGET_SIGNAL_REALTIME_73,
155
    TARGET_SIGNAL_REALTIME_74,
156
    TARGET_SIGNAL_REALTIME_75,
157
    TARGET_SIGNAL_REALTIME_76,
158
    TARGET_SIGNAL_REALTIME_77,
159
    TARGET_SIGNAL_REALTIME_78,
160
    TARGET_SIGNAL_REALTIME_79,
161
    TARGET_SIGNAL_REALTIME_80,
162
    TARGET_SIGNAL_REALTIME_81,
163
    TARGET_SIGNAL_REALTIME_82,
164
    TARGET_SIGNAL_REALTIME_83,
165
    TARGET_SIGNAL_REALTIME_84,
166
    TARGET_SIGNAL_REALTIME_85,
167
    TARGET_SIGNAL_REALTIME_86,
168
    TARGET_SIGNAL_REALTIME_87,
169
    TARGET_SIGNAL_REALTIME_88,
170
    TARGET_SIGNAL_REALTIME_89,
171
    TARGET_SIGNAL_REALTIME_90,
172
    TARGET_SIGNAL_REALTIME_91,
173
    TARGET_SIGNAL_REALTIME_92,
174
    TARGET_SIGNAL_REALTIME_93,
175
    TARGET_SIGNAL_REALTIME_94,
176
    TARGET_SIGNAL_REALTIME_95,
177
    TARGET_SIGNAL_REALTIME_96,
178
    TARGET_SIGNAL_REALTIME_97,
179
    TARGET_SIGNAL_REALTIME_98,
180
    TARGET_SIGNAL_REALTIME_99,
181
    TARGET_SIGNAL_REALTIME_100,
182
    TARGET_SIGNAL_REALTIME_101,
183
    TARGET_SIGNAL_REALTIME_102,
184
    TARGET_SIGNAL_REALTIME_103,
185
    TARGET_SIGNAL_REALTIME_104,
186
    TARGET_SIGNAL_REALTIME_105,
187
    TARGET_SIGNAL_REALTIME_106,
188
    TARGET_SIGNAL_REALTIME_107,
189
    TARGET_SIGNAL_REALTIME_108,
190
    TARGET_SIGNAL_REALTIME_109,
191
    TARGET_SIGNAL_REALTIME_110,
192
    TARGET_SIGNAL_REALTIME_111,
193
    TARGET_SIGNAL_REALTIME_112,
194
    TARGET_SIGNAL_REALTIME_113,
195
    TARGET_SIGNAL_REALTIME_114,
196
    TARGET_SIGNAL_REALTIME_115,
197
    TARGET_SIGNAL_REALTIME_116,
198
    TARGET_SIGNAL_REALTIME_117,
199
    TARGET_SIGNAL_REALTIME_118,
200
    TARGET_SIGNAL_REALTIME_119,
201
    TARGET_SIGNAL_REALTIME_120,
202
    TARGET_SIGNAL_REALTIME_121,
203
    TARGET_SIGNAL_REALTIME_122,
204
    TARGET_SIGNAL_REALTIME_123,
205
    TARGET_SIGNAL_REALTIME_124,
206
    TARGET_SIGNAL_REALTIME_125,
207
    TARGET_SIGNAL_REALTIME_126,
208
    TARGET_SIGNAL_REALTIME_127,
209
 
210
    TARGET_SIGNAL_INFO,
211
 
212
    /* Some signal we don't know about.  */
213
    TARGET_SIGNAL_UNKNOWN,
214
 
215
    /* Use whatever signal we use when one is not specifically specified
216
       (for passing to proceed and so on).  */
217
    TARGET_SIGNAL_DEFAULT,
218
 
219
    /* Mach exceptions.  In versions of GDB before 5.2, these were just before
220
       TARGET_SIGNAL_INFO if you were compiling on a Mach host (and missing
221
       otherwise).  */
222
    TARGET_EXC_BAD_ACCESS,
223
    TARGET_EXC_BAD_INSTRUCTION,
224
    TARGET_EXC_ARITHMETIC,
225
    TARGET_EXC_EMULATION,
226
    TARGET_EXC_SOFTWARE,
227
    TARGET_EXC_BREAKPOINT,
228
 
229
    /* If you are adding a new signal, add it just above this comment.  */
230
 
231
    /* Last and unused enum value, for sizing arrays, etc.  */
232
    TARGET_SIGNAL_LAST
233
  };
234
 
235
#endif /* #ifndef GDB_SIGNALS_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.