Commit c72d5bf87ee5234d885e63f47f5197e9b58ae67e
1 parent
75f76531
Fix bsd-user build
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6312 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
6 additions
and
0 deletions
gdbstub.c
| @@ -87,7 +87,11 @@ static int gdb_signal_table[] = { | @@ -87,7 +87,11 @@ static int gdb_signal_table[] = { | ||
| 87 | -1, /* SIGLOST */ | 87 | -1, /* SIGLOST */ |
| 88 | TARGET_SIGUSR1, | 88 | TARGET_SIGUSR1, |
| 89 | TARGET_SIGUSR2, | 89 | TARGET_SIGUSR2, |
| 90 | +#ifdef TARGET_SIGPWR | ||
| 90 | TARGET_SIGPWR, | 91 | TARGET_SIGPWR, |
| 92 | +#else | ||
| 93 | + -1, | ||
| 94 | +#endif | ||
| 91 | -1, /* SIGPOLL */ | 95 | -1, /* SIGPOLL */ |
| 92 | -1, | 96 | -1, |
| 93 | -1, | 97 | -1, |
| @@ -100,6 +104,7 @@ static int gdb_signal_table[] = { | @@ -100,6 +104,7 @@ static int gdb_signal_table[] = { | ||
| 100 | -1, | 104 | -1, |
| 101 | -1, | 105 | -1, |
| 102 | -1, | 106 | -1, |
| 107 | +#ifdef __SIGRTMIN | ||
| 103 | __SIGRTMIN + 1, | 108 | __SIGRTMIN + 1, |
| 104 | __SIGRTMIN + 2, | 109 | __SIGRTMIN + 2, |
| 105 | __SIGRTMIN + 3, | 110 | __SIGRTMIN + 3, |
| @@ -206,6 +211,7 @@ static int gdb_signal_table[] = { | @@ -206,6 +211,7 @@ static int gdb_signal_table[] = { | ||
| 206 | -1, | 211 | -1, |
| 207 | -1, | 212 | -1, |
| 208 | -1 | 213 | -1 |
| 214 | +#endif | ||
| 209 | }; | 215 | }; |
| 210 | #else | 216 | #else |
| 211 | /* In system mode we only need SIGINT and SIGTRAP; other signals | 217 | /* In system mode we only need SIGINT and SIGTRAP; other signals |