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) {