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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [gdb-5.3/] [include/] [gdb/] [signals.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

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