diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-05-09 22:20:29 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-05-09 22:20:29 +0000 |
commit | eb8c16abe7d4865abb6abb924ac671f4acf3b1f0 (patch) | |
tree | 44b5b54cd4545e9f8987d57f9701b4502c44ea28 /gdb/signals | |
parent | c213fa1eb8ea57d99d5cefc0070a673213c651e1 (diff) | |
download | gdb-eb8c16abe7d4865abb6abb924ac671f4acf3b1f0.tar.gz |
2002-05-09 Daniel Jacobowitz <drow@mvista.com>
* signals/signals.c (signals): Remove conditional compilation around
Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
(target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
Diffstat (limited to 'gdb/signals')
-rw-r--r-- | gdb/signals/signals.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/signals/signals.c b/gdb/signals/signals.c index 774d70ab84e..643e450fbbe 100644 --- a/gdb/signals/signals.c +++ b/gdb/signals/signals.c @@ -180,7 +180,11 @@ static struct { {"SIG126", "Real-time event 126"}, {"SIG127", "Real-time event 127"}, -#if defined(MACH) || defined(__MACH__) + {"SIGINFO", "Information request"}, + + {NULL, "Unknown signal"}, + {NULL, "Internal error: printing TARGET_SIGNAL_DEFAULT"}, + /* Mach exceptions */ {"EXC_BAD_ACCESS", "Could not access memory"}, {"EXC_BAD_INSTRUCTION", "Illegal instruction/operand"}, @@ -188,11 +192,6 @@ static struct { {"EXC_EMULATION", "Emulation instruction"}, {"EXC_SOFTWARE", "Software generated exception"}, {"EXC_BREAKPOINT", "Breakpoint"}, -#endif - {"SIGINFO", "Information request"}, - - {NULL, "Unknown signal"}, - {NULL, "Internal error: printing TARGET_SIGNAL_DEFAULT"}, /* Last entry, used to check whether the table is the right size. */ {NULL, "TARGET_SIGNAL_MAGIC"} @@ -237,9 +236,10 @@ target_signal_from_name (char *name) /* This ugly cast brought to you by the native VAX compiler. */ for (sig = TARGET_SIGNAL_HUP; - signals[sig].name != NULL; + sig < TARGET_SIGNAL_LAST; sig = (enum target_signal) ((int) sig + 1)) - if (strcmp (name, signals[sig].name) == 0) + if (signals[sig].name != NULL + && strcmp (name, signals[sig].name) == 0) return sig; return TARGET_SIGNAL_UNKNOWN; } |