From: Yao Qi Date: Tue, 16 Aug 2011 04:15:23 +0000 (+0000) Subject: gdb/ X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=85661b1e192f79e9a554d7588a4d5a5956039877;p=deliverable%2Fbinutils-gdb.git gdb/ * tic6x-linux-tdep.c: Move const arrays definition from here... * tic6x-tdep.c: to here ... --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 25f511f078..2f13b3bcc5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-08-16 Yao Qi + + * tic6x-linux-tdep.c: Move const arrays definition from here... + * tic6x-tdep.c: to here ... + 2011-08-14 Yao Qi * NEWS: New port to Texas Instruments TMS320C6x. diff --git a/gdb/tic6x-linux-tdep.c b/gdb/tic6x-linux-tdep.c index 0e4d327235..c7026d63f2 100644 --- a/gdb/tic6x-linux-tdep.c +++ b/gdb/tic6x-linux-tdep.c @@ -41,9 +41,6 @@ size_t respectively. */ #define TIC6X_STACK_T_SIZE (3 * 4) -const gdb_byte tic6x_bkpt_illegal_opcode_be[] = { 0x56, 0x45, 0x43, 0x14 }; -const gdb_byte tic6x_bkpt_illegal_opcode_le[] = { 0x14, 0x43, 0x45, 0x56 }; - static const gdb_byte tic6x_bkpt_bnop_be[] = { 0x00, 0x00, 0xa1, 0x22 }; static const gdb_byte tic6x_bkpt_bnop_le[] = { 0x22, 0xa1, 0x00, 0x00 }; diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c index eedb5e9129..c7df5bce0a 100644 --- a/gdb/tic6x-tdep.c +++ b/gdb/tic6x-tdep.c @@ -61,6 +61,9 @@ #define INST_S_BIT(INST) ((INST >> 1) & 1) #define INST_X_BIT(INST) ((INST >> 12) & 1) +const gdb_byte tic6x_bkpt_illegal_opcode_be[] = { 0x56, 0x45, 0x43, 0x14 }; +const gdb_byte tic6x_bkpt_illegal_opcode_le[] = { 0x14, 0x43, 0x45, 0x56 }; + struct tic6x_unwind_cache { /* The frame's base, optionally used by the high-level debug info. */