- gdb_stub: constify array
git-svn-id: http://moon:8086/svn/mips@103 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -336,7 +336,7 @@ struct hard_trap_info_t
|
|||||||
unsigned long signo; /* Signal that we map this trap into */
|
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) */
|
{0, SIGINT}, /* Interrupt (Int) */
|
||||||
{1, SIGSEGV}, /* TLB modification (Mod) */
|
{1, SIGSEGV}, /* TLB modification (Mod) */
|
||||||
@@ -361,7 +361,7 @@ computeSignal (unsigned long tt)
|
|||||||
// Determine linux signal from CPU specific exception code
|
// Determine linux signal from CPU specific exception code
|
||||||
struct hard_trap_info_t *ht;
|
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)
|
if (ht->tt == tt)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user