From cfef553c9ce2b1f5f25766e3085ca3f60cfcf028 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Wed, 18 Jan 2017 23:42:25 +0000 Subject: [PATCH] - gdb_stub: constify array git-svn-id: http://moon:8086/svn/mips@103 a8ebac50-d88d-4704-bea3-6648445a41b3 --- src/libsys/gdb_stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsys/gdb_stub.c b/src/libsys/gdb_stub.c index f5bc6bd..ce90039 100644 --- a/src/libsys/gdb_stub.c +++ b/src/libsys/gdb_stub.c @@ -336,7 +336,7 @@ struct hard_trap_info_t unsigned long signo; /* Signal that we map this trap into */ }; -static struct hard_trap_info_t hard_trap_info[] = +const struct hard_trap_info_t hard_trap_info[] = { {0, SIGINT}, /* Interrupt (Int) */ {1, SIGSEGV}, /* TLB modification (Mod) */ @@ -361,7 +361,7 @@ computeSignal (unsigned long tt) // Determine linux signal from CPU specific exception code struct hard_trap_info_t *ht; - for (ht = hard_trap_info; ht->signo != 0; ht++) + for (ht = (struct hard_trap_info_t *)hard_trap_info; ht->signo != 0; ht++) { if (ht->tt == tt) {