aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2015-11-19 13:58:29 +0000
committerYao Qi <yao.qi@linaro.org>2015-11-19 14:01:04 +0000
commit231c0592639d6f5c1796feb4a6375eab202a4acb (patch)
treebd5a4a085e2b93a574d87450dd18e9e9d481439b /gdb/gdbserver
parent6c1c9a8bbd2aa3fbc627525b452e7dbbaf40efc5 (diff)
downloadgdb-231c0592639d6f5c1796feb4a6375eab202a4acb.zip
gdb-231c0592639d6f5c1796feb4a6375eab202a4acb.tar.gz
gdb-231c0592639d6f5c1796feb4a6375eab202a4acb.tar.bz2
Change argument opcode type from enum aarch64_opcodes to uint32_t
The patch fixes the following errors in C++ build, gdb/gdbserver/linux-aarch64-low.c: In function 'int emit_data_processing(uint32_t*, aarch64_opcodes, aarch64_register, aarch64_register, aarch64_operand)': gdb/gdbserver/linux-aarch64-low.c:1071:52: error: invalid conversion from 'unsigned int' to 'aarch64_opcodes' [-fpermissive] return emit_data_processing_reg (buf, opcode | operand_opcode, rd, ^ gdb/gdbserver: 2015-11-19 Yao Qi <yao.qi@linaro.org> * linux-aarch64-low.c (emit_data_processing_reg): Change opcode type to uint32_t.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-aarch64-low.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 183f8a9..86e1b64 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2015-11-19 Yao Qi <yao.qi@linaro.org>
+ * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
+ type to uint32_t.
+
+2015-11-19 Yao Qi <yao.qi@linaro.org>
+
* linux-aarch64-low.c (enum aarch64_operand_type): New.
(struct aarch64_operand): Move enum out.
diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
index 7cd9b77..cb78666 100644
--- a/gdb/gdbserver/linux-aarch64-low.c
+++ b/gdb/gdbserver/linux-aarch64-low.c
@@ -1029,7 +1029,7 @@ emit_stlr (uint32_t *buf, struct aarch64_register rt,
/* Helper function for data processing instructions with register sources. */
static int
-emit_data_processing_reg (uint32_t *buf, enum aarch64_opcodes opcode,
+emit_data_processing_reg (uint32_t *buf, uint32_t opcode,
struct aarch64_register rd,
struct aarch64_register rn,
struct aarch64_register rm)