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/arm-tdep.c | |
parent | c42dd30d73ec441ed9cab207597c7f5ce88ee231 (diff) | |
download | gdb-0d1703b8fb611f978577a70ad6aa308a12a53980.zip gdb-0d1703b8fb611f978577a70ad6aa308a12a53980.tar.gz gdb-0d1703b8fb611f978577a70ad6aa308a12a53980.tar.bz2 |
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/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 7274752..aa5d8e6 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -10701,18 +10701,18 @@ enum arm_record_result ARM_RECORD_FAILURE = 1 }; -typedef enum +enum arm_record_strx_t { ARM_RECORD_STRH=1, ARM_RECORD_STRD -} arm_record_strx_t; +}; -typedef enum +enum record_type_t { ARM_RECORD=1, THUMB_RECORD, THUMB2_RECORD -} record_type_t; +}; static int |