This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Unbreak build for tic6x-elf
- From: Yao Qi <yao at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 16 Aug 2011 12:15:59 +0800
- Subject: [obv] Unbreak build for tic6x-elf
This patch is to fix a tic6x-elf build failure. Committed as it is obvious.
http://sourceware.org/ml/gdb-cvs/2011-08/msg00080.html
--
Yao (éå)
2011-08-16 Yao Qi <yao@codesourcery.com>
gdb/
* tic6x-linux-tdep.c: Move const arrays definition from here...
* tic6x-tdep.c: to here ...
---
gdb/tic6x-linux-tdep.c | 3 ---
gdb/tic6x-tdep.c | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/tic6x-linux-tdep.c b/gdb/tic6x-linux-tdep.c
index 0e4d327..c7026d6 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 eedb5e9..c7df5bc 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. */
--
1.7.0.4