From: Yao Qi Date: Wed, 14 Oct 2015 08:23:14 +0000 (+0100) Subject: Define enum out of struct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6448a3e4daecbdba25e5c76b0fbb0c21583a1347;p=binutils-gdb.git 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 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum out of it. (enum aarch64_memory_operand_type): New. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cabfe362fee..4b8ffb7bf63 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-10-14 Yao Qi + + * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum + out of it. + (enum aarch64_memory_operand_type): New. + 2015-10-13 David Edelsohn * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp. diff --git a/gdb/arch/aarch64-insn.h b/gdb/arch/aarch64-insn.h index d51cabc5cf2..cc7ec485951 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; };