aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch/aarch64-insn.h
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2015-10-14 09:23:14 +0100
committerYao Qi <yao.qi@linaro.org>2015-10-14 09:30:39 +0100
commit6448a3e4daecbdba25e5c76b0fbb0c21583a1347 (patch)
tree8089ea64028e5762c83f7730a116af1a2f2aafc0 /gdb/arch/aarch64-insn.h
parent82c88aa6294d6f764bc1ad9b55497b73a4743bb1 (diff)
downloadfsf-binutils-gdb-6448a3e4daecbdba25e5c76b0fbb0c21583a1347.zip
fsf-binutils-gdb-6448a3e4daecbdba25e5c76b0fbb0c21583a1347.tar.gz
fsf-binutils-gdb-6448a3e4daecbdba25e5c76b0fbb0c21583a1347.tar.bz2
Define enum out of struct
This patch moves the definition of enum out of the scope of struct aarch64_memory_operand, otherwise it breaks GDB build in c++ mode. gdb: 2015-10-14 Yao Qi <yao.qi@linaro.org> * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum out of it. (enum aarch64_memory_operand_type): New.
Diffstat (limited to 'gdb/arch/aarch64-insn.h')
-rw-r--r--gdb/arch/aarch64-insn.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/gdb/arch/aarch64-insn.h b/gdb/arch/aarch64-insn.h
index d51cabc..cc7ec48 100644
--- a/gdb/arch/aarch64-insn.h
+++ b/gdb/arch/aarch64-insn.h
@@ -117,6 +117,13 @@ struct aarch64_register
int is64;
};
+enum aarch64_memory_operand_type
+{
+ MEMORY_OPERAND_OFFSET,
+ MEMORY_OPERAND_PREINDEX,
+ MEMORY_OPERAND_POSTINDEX,
+};
+
/* Representation of a memory operand, used for load and store
instructions.
@@ -129,12 +136,8 @@ struct aarch64_register
struct aarch64_memory_operand
{
/* Type of the operand. */
- enum
- {
- MEMORY_OPERAND_OFFSET,
- MEMORY_OPERAND_PREINDEX,
- MEMORY_OPERAND_POSTINDEX,
- } type;
+ enum aarch64_memory_operand_type type;
+
/* Index from the base register. */
int32_t index;
};