summaryrefslogtreecommitdiff
path: root/gdb/ia64-tdep.c
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/ia64-tdep.c
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/ia64-tdep.c')
-rw-r--r--gdb/ia64-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 69a4b4db4fd..dd6d5b199b2 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -75,7 +75,7 @@ static gdb::optional<gdb::byte_vector> ktab_buf;
/* An enumeration of the different IA-64 instruction types. */
-typedef enum instruction_type
+enum instruction_type
{
A, /* Integer ALU ; I-unit or M-unit */
I, /* Non-ALU integer; I-unit */
@@ -85,7 +85,7 @@ typedef enum instruction_type
L, /* Extended (L+X) ; I-unit */
X, /* Extended (L+X) ; I-unit */
undefined /* undefined or reserved */
-} instruction_type;
+};
/* We represent IA-64 PC addresses as the value of the instruction
pointer or'd with some bit combination in the low nibble which