Révision | 6c1c9a8bbd2aa3fbc627525b452e7dbbaf40efc5 (tree) |
---|---|
l'heure | 2015-11-19 23:01:03 |
Auteur | Yao Qi <yao.qi@lina...> |
Commiter | Yao Qi |
Define enum out of the scope of struct
This patch moves the enum definition out of the scope of struct, and
fixes the following error.
gdb/gdbserver/linux-aarch64-low.c:681:18: error: 'OPERAND_REGISTER' was not declared in this scope
gdb/gdbserver:
2015-11-19 Yao Qi <yao.qi@linaro.org>
* linux-aarch64-low.c (enum aarch64_operand_type): New.
(struct aarch64_operand): Move enum out.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
2 | 2 | |
3 | + * linux-aarch64-low.c (enum aarch64_operand_type): New. | |
4 | + (struct aarch64_operand): Move enum out. | |
5 | + | |
6 | +2015-11-19 Yao Qi <yao.qi@linaro.org> | |
7 | + | |
3 | 8 | * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to |
4 | 9 | struct user_fpsimd_state *. |
5 | 10 | (aarch64_store_fpregset): Likewise. |
@@ -614,17 +614,20 @@ enum aarch64_condition_codes | ||
614 | 614 | LE = 0xd, |
615 | 615 | }; |
616 | 616 | |
617 | +enum aarch64_operand_type | |
618 | +{ | |
619 | + OPERAND_IMMEDIATE, | |
620 | + OPERAND_REGISTER, | |
621 | +}; | |
622 | + | |
617 | 623 | /* Representation of an operand. At this time, it only supports register |
618 | 624 | and immediate types. */ |
619 | 625 | |
620 | 626 | struct aarch64_operand |
621 | 627 | { |
622 | 628 | /* Type of the operand. */ |
623 | - enum | |
624 | - { | |
625 | - OPERAND_IMMEDIATE, | |
626 | - OPERAND_REGISTER, | |
627 | - } type; | |
629 | + enum aarch64_operand_type type; | |
630 | + | |
628 | 631 | /* Value of the operand according to the type. */ |
629 | 632 | union |
630 | 633 | { |