aboutsummaryrefslogtreecommitdiff
path: root/gdb/convex-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/convex-tdep.c')
-rw-r--r--gdb/convex-tdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/convex-tdep.c b/gdb/convex-tdep.c
index 774bbcb..ac213ae 100644
--- a/gdb/convex-tdep.c
+++ b/gdb/convex-tdep.c
@@ -664,8 +664,10 @@ subsig_name (signo, subcode)
{0, 0, 0, 0, subsig4, subsig5, 0, 0, subsig8, 0, subsig10, subsig11, 0};
int i;
- char *p = signo < NSIG ? sys_siglist[signo] : "unknown";
+ char *p;
+ if ((p = strsignal (signo)) == NULL)
+ p = "unknown";
if (signo >= (sizeof subsig_list / sizeof *subsig_list)
|| !subsig_list[signo])
return p;