18 #define NTO_SIGDEADLK 7
22 #define NTO_SIGSEGV 11
24 #define NTO_SIGPIPE 13
25 #define NTO_SIGALRM 14
26 #define NTO_SIGTERM 15
27 #define NTO_SIGUSR1 16
28 #define NTO_SIGUSR2 17
29 #define NTO_SIGCHLD 18
31 #define NTO_SIGWINCH 20
33 #define NTO_SIGPOLL 22
34 #define NTO_SIGIO NTO_SIGPOLL
35 #define NTO_SIGSTOP 23
36 #define NTO_SIGTSTP 24
37 #define NTO_SIGCONT 25
38 #define NTO_SIGTTIN 26
39 #define NTO_SIGTTOU 27
40 #define NTO_SIGVTALRM 28
41 #define NTO_SIGPROF 29
42 #define NTO_SIGXCPU 30
43 #define NTO_SIGXFSZ 31
44 #define NTO_SIGRTMIN 41
45 #define NTO_SIGRTMAX 56
46 #define NTO_SIGSELECT (NTO_SIGRTMAX + 1)
47 #define NTO_SIGPHOTON (NTO_SIGRTMAX + 2)
101 if (hostsig == SIGINT)
105 if (hostsig == SIGQUIT)
109 if (hostsig == SIGILL)
113 if (hostsig == SIGTRAP)
117 if (hostsig == SIGABRT)
121 if (hostsig == SIGEMT)
125 if (hostsig == SIGFPE)
133 if (hostsig == SIGBUS)
137 if (hostsig == SIGSEGV)
141 if (hostsig == SIGSYS)
145 if (hostsig == SIGPIPE)
149 if (hostsig == SIGALRM)
153 if (hostsig == SIGTERM)
157 if (hostsig == SIGUSR1)
161 if (hostsig == SIGUSR2)
165 if (hostsig == SIGCLD)
169 if (hostsig == SIGCHLD)
173 if (hostsig == SIGPWR)
176 #if defined(SIGWINCH)
181 if (hostsig == SIGURG)
185 if (hostsig == SIGIO)
189 if (hostsig == SIGPOLL)
193 if (hostsig == SIGSTOP)
197 if (hostsig == SIGTSTP)
201 if (hostsig == SIGCONT)
205 if (hostsig == SIGTTIN)
209 if (hostsig == SIGTTOU)
212 #if defined(SIGVTALRM)
213 if (hostsig == SIGVTALRM)
217 if (hostsig == SIGPROF)
221 if (hostsig == SIGXCPU)
225 if (hostsig == SIGXFSZ)
229 if (hostsig == SIGWIND)
232 #if defined(SIGPHONE)
233 if (hostsig == SIGPHONE)
237 if (hostsig == SIGLOST)
240 #if defined(SIGWAITING)
241 if (hostsig == SIGWAITING)
244 #if defined(SIGCANCEL)
245 if (hostsig == SIGCANCEL)
249 if (hostsig == SIGLWP)
252 #if defined(SIGDANGER)
253 if (hostsig == SIGDANGER)
256 #if defined(SIGGRANT)
257 if (hostsig == SIGGRANT)
260 #if defined(SIGRETRACT)
261 if (hostsig == SIGRETRACT)
265 if (hostsig == SIGMSG)
268 #if defined(SIGSOUND)
269 if (hostsig == SIGSOUND)
273 if (hostsig == SIGSAK)
276 #if defined(SIGPRzIO)
277 if (hostsig == SIGPRzIO)
282 #if defined(EXC_BAD_ACCESS) && defined(_NSIG)
283 if (hostsig == _NSIG + EXC_BAD_ACCESS)
286 #if defined(EXC_BAD_INSTRUCTION) && defined(_NSIG)
287 if (hostsig == _NSIG + EXC_BAD_INSTRUCTION)
290 #if defined(EXC_ARITHMETIC) && defined(_NSIG)
291 if (hostsig == _NSIG + EXC_ARITHMETIC)
294 #if defined(EXC_EMULATION) && defined(_NSIG)
295 if (hostsig == _NSIG + EXC_EMULATION)
298 #if defined(EXC_SOFTWARE) && defined(_NSIG)
299 if (hostsig == _NSIG + EXC_SOFTWARE)
302 #if defined(EXC_BREAKPOINT) && defined(_NSIG)
303 if (hostsig == _NSIG + EXC_BREAKPOINT)
308 if (hostsig == SIGINFO)
312 #if defined(REALTIME_LO)
313 if (hostsig >= REALTIME_LO && hostsig < REALTIME_HI) {
315 if (33 <= hostsig && hostsig <= 63)
317 else if (hostsig == 32)
319 else if (64 <= hostsig && hostsig <= 127)
322 error(
"GDB bug: target.c (target_signal_from_host): unrecognized real-time signal");
410 #if defined(SIGCHLD) || defined(SIGCLD)
422 #if defined(SIGWINCH)
458 #if defined(SIGVTALRM)
478 #if defined(SIGPHONE)
486 #if defined(SIGWAITING)
490 #if defined(SIGCANCEL)
498 #if defined(SIGDANGER)
502 #if defined(SIGGRANT)
506 #if defined(SIGRETRACT)
514 #if defined(SIGSOUND)
522 #if defined(SIGPRzIO)
528 #if defined(EXC_BAD_ACCESS) && defined(_NSIG)
530 return _NSIG + EXC_BAD_ACCESS;
532 #if defined(EXC_BAD_INSTRUCTION) && defined(_NSIG)
534 return _NSIG + EXC_BAD_INSTRUCTION;
536 #if defined(EXC_ARITHMETIC) && defined(_NSIG)
538 return _NSIG + EXC_ARITHMETIC;
540 #if defined(EXC_EMULATION) && defined(_NSIG)
542 return _NSIG + EXC_EMULATION;
544 #if defined(EXC_SOFTWARE) && defined(_NSIG)
546 return _NSIG + EXC_SOFTWARE;
548 #if defined(EXC_BREAKPOINT) && defined(_NSIG)
550 return _NSIG + EXC_BREAKPOINT;
559 #if defined(REALTIME_LO)
576 if (retsig >= REALTIME_LO && retsig < REALTIME_HI)
@ TARGET_SIGNAL_REALTIME_33
@ TARGET_SIGNAL_REALTIME_41
@ TARGET_SIGNAL_REALTIME_64
@ TARGET_EXC_BAD_INSTRUCTION
@ TARGET_SIGNAL_REALTIME_63
@ TARGET_SIGNAL_REALTIME_127
@ TARGET_SIGNAL_REALTIME_32
enum target_signal target_signal_from_host(int hostsig)
static struct @604 sig_map[]
enum target_signal gdb_sig
static int do_target_signal_to_host(enum target_signal oursig, int *oursig_ok)
int host_signal_from_nto(int sig)
enum target_signal target_signal_from_nto(int sig)
int target_signal_to_host(enum target_signal oursig)
void error(const char *msg)