- gdb_stub: constify array

git-svn-id: http://moon:8086/svn/mips@103 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-01-18 23:42:25 +00:00
parent 340c96cd70
commit cfef553c9c
+2 -2
View File
@@ -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)
{