• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision6c1c9a8bbd2aa3fbc627525b452e7dbbaf40efc5 (tree)
l'heure2015-11-19 23:01:03
AuteurYao Qi <yao.qi@lina...>
CommiterYao Qi

Message de Log

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

operand.type = OPERAND_REGISTER;

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.

Change Summary

Modification

--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
11 2015-11-19 Yao Qi <yao.qi@linaro.org>
22
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+
38 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
49 struct user_fpsimd_state *.
510 (aarch64_store_fpregset): Likewise.
--- a/gdb/gdbserver/linux-aarch64-low.c
+++ b/gdb/gdbserver/linux-aarch64-low.c
@@ -614,17 +614,20 @@ enum aarch64_condition_codes
614614 LE = 0xd,
615615 };
616616
617+enum aarch64_operand_type
618+{
619+ OPERAND_IMMEDIATE,
620+ OPERAND_REGISTER,
621+};
622+
617623 /* Representation of an operand. At this time, it only supports register
618624 and immediate types. */
619625
620626 struct aarch64_operand
621627 {
622628 /* Type of the operand. */
623- enum
624- {
625- OPERAND_IMMEDIATE,
626- OPERAND_REGISTER,
627- } type;
629+ enum aarch64_operand_type type;
630+
628631 /* Value of the operand according to the type. */
629632 union
630633 {