summaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-04-27 14:32:49 -0600
committerTom Tromey <tromey@adacore.com>2022-04-28 09:31:15 -0600
commit0d1703b8fb611f978577a70ad6aa308a12a53980 (patch)
tree1575fb753e121f86566507be66b72cd85efc013e /gdb/xtensa-tdep.h
parentc42dd30d73ec441ed9cab207597c7f5ce88ee231 (diff)
downloadbinutils-gdb-0d1703b8fb611f978577a70ad6aa308a12a53980.tar.gz
Remove "typedef enum ..."
I noticed a few spots in GDB that use "typedef enum". However, in C++ this isn't as useful, as the tag is automatically entered as a typedef. This patch removes most uses of "typedef enum" -- the exceptions being in some nat-* code I can't compile, and glibc_thread_db.h, which I think is more or less a copy of some C code from elsewhere. Tested by rebuilding.
Diffstat (limited to 'gdb/xtensa-tdep.h')
-rw-r--r--gdb/xtensa-tdep.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h
index a1e7188d523..1840ef98b49 100644
--- a/gdb/xtensa-tdep.h
+++ b/gdb/xtensa-tdep.h
@@ -31,7 +31,7 @@
/* Xtensa register type. */
-typedef enum
+enum xtensa_register_type_t
{
xtRegisterTypeArRegfile = 1, /* Register File ar0..arXX. */
xtRegisterTypeSpecialReg, /* CPU states, such as PS, Booleans, (rsr). */
@@ -43,14 +43,14 @@ typedef enum
xtRegisterTypeWindow, /* Live window registers (a0..a15). */
xtRegisterTypeVirtual, /* PC, FP. */
xtRegisterTypeUnknown
-} xtensa_register_type_t;
+};
/* Xtensa register group. */
#define XTENSA_MAX_COPROCESSOR 0x10 /* Number of Xtensa coprocessors. */
-typedef enum
+enum xtensa_register_group_t
{
xtRegisterGroupUnknown = 0,
xtRegisterGroupRegFile = 0x0001, /* Register files without ARx. */
@@ -75,16 +75,16 @@ typedef enum
xtRegisterGroupCP6 = 0x40000000, /* CP6. */
xtRegisterGroupCP7 = 0x80000000, /* CP7. */
-} xtensa_register_group_t;
+};
/* Xtensa target flags. */
-typedef enum
+enum xtensa_target_flags_t
{
xtTargetFlagsNonVisibleRegs = 0x0001,
xtTargetFlagsUseFetchStore = 0x0002,
-} xtensa_target_flags_t;
+};
/* Mask. */
@@ -143,11 +143,11 @@ typedef struct
/* Call-ABI for stack frame. */
-typedef enum
+enum call_abi_t
{
CallAbiDefault = 0, /* Any 'callX' instructions; default stack. */
CallAbiCall0Only, /* Only 'call0' instructions; flat stack. */
-} call_abi_t;
+};
struct ctype_cache