From 0d1703b8fb611f978577a70ad6aa308a12a53980 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 27 Apr 2022 14:32:49 -0600 Subject: 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. --- gdb/jit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/jit.h') diff --git a/gdb/jit.h b/gdb/jit.h index 274ce45..6854763 100644 --- a/gdb/jit.h +++ b/gdb/jit.h @@ -28,12 +28,12 @@ struct minimal_symbol; these actions. These values are used by the inferior, so the values of these enums cannot be changed. */ -typedef enum +enum jit_actions_t { JIT_NOACTION = 0, JIT_REGISTER, JIT_UNREGISTER -} jit_actions_t; +}; /* This struct describes a single symbol file in a linked list of symbol files describing generated code. As the inferior generates -- cgit v1.1