OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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