diff options
author | Tom Tromey <tromey@adacore.com> | 2022-04-27 14:32:49 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-04-28 09:31:15 -0600 |
commit | 0d1703b8fb611f978577a70ad6aa308a12a53980 (patch) | |
tree | 1575fb753e121f86566507be66b72cd85efc013e /gdb/xtensa-tdep.c | |
parent | c42dd30d73ec441ed9cab207597c7f5ce88ee231 (diff) | |
download | binutils-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.c')
-rw-r--r-- | gdb/xtensa-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index 89bdd7ffd28..b6558838e44 100644 --- a/gdb/xtensa-tdep.c +++ b/gdb/xtensa-tdep.c @@ -2058,7 +2058,7 @@ call0_ret (CORE_ADDR start_pc, CORE_ADDR finish_pc) The purpose of this is to simplify prologue analysis by separating instruction decoding (libisa) from the semantics of prologue analysis. */ -typedef enum +enum xtensa_insn_kind { c0opc_illegal, /* Unknown to libisa (invalid) or 'ill' opcode. */ c0opc_uninteresting, /* Not interesting for Call0 prologue analysis. */ @@ -2079,7 +2079,7 @@ typedef enum c0opc_rfwo, /* RFWO instruction. */ c0opc_rfwu, /* RFWU instruction. */ c0opc_NrOf /* Number of opcode classifications. */ -} xtensa_insn_kind; +}; /* Return true, if OPCNAME is RSR, WRS, or XSR instruction. */ @@ -2753,12 +2753,12 @@ execute_s32e (struct gdbarch *gdbarch, int at, int as, int offset, CORE_ADDR wb) #define XTENSA_MAX_WINDOW_INTERRUPT_HANDLER_LEN 200 -typedef enum +enum xtensa_exception_handler_t { xtWindowOverflow, xtWindowUnderflow, xtNoExceptionHandler -} xtensa_exception_handler_t; +}; /* Execute instruction stream from current PC until hitting RFWU or RFWO. Return type of Xtensa Window Interrupt Handler on success. */ |