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
install_breakpoint (0, std::move (c), 1);
}
-typedef enum
+enum catch_fork_kind
{
catch_fork_temporary, catch_vfork_temporary,
catch_fork_permanent, catch_vfork_permanent
-}
-catch_fork_kind;
+};
static void
catch_fork_command_1 (const char *arg, int from_tty,
};
/* Types of "set" or "show" command. */
-typedef enum var_types
+enum var_types
{
/* "on" or "off". *VAR is a bool which is true for on,
false for off. */
*VAR is a char pointer to the name of the element that we
find. */
var_enum
- }
-var_types;
+ };
/* Return true if a setting of type VAR_TYPE is backed with type T.
{
std::string tmp = copy_name (yylval.sval);
struct block_symbol result;
- const enum domain_enum_tag lookup_domains[] =
+ const domain_enum lookup_domains[] =
{
STRUCT_DOMAIN,
VAR_DOMAIN,
/* 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 */
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
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
/* Token types */
-enum ls_token_type
+enum linespec_token_type
{
/* A keyword */
LSTOKEN_KEYWORD = 0,
/* Consumed token */
LSTOKEN_CONSUMED
};
-typedef enum ls_token_type linespec_token_type;
/* List of keywords. This is NULL-terminated so that it can be used
as enum completer. */
DEBUG_EVENT event;
};
-typedef enum
+enum handle_exception_result
{
HANDLE_EXCEPTION_UNHANDLED = 0,
HANDLE_EXCEPTION_HANDLED,
HANDLE_EXCEPTION_IGNORED
-} handle_exception_result;
+};
/* A single Windows process. An object of this type (or subclass) is
created by the client. Some methods must be provided by the client
#define X86_DR_WATCH_HIT(dr6, i) ((dr6) & (1 << (i)))
/* Types of operations supported by x86_handle_nonaligned_watchpoint. */
-typedef enum { WP_INSERT, WP_REMOVE, WP_COUNT } x86_wp_op_t;
+enum x86_wp_op_t { WP_INSERT, WP_REMOVE, WP_COUNT };
/* Print the values of the mirrored debug registers. */
/* Name space code. */
- ENUM_BITFIELD(domain_enum_tag) domain : SYMBOL_DOMAIN_BITS;
+ ENUM_BITFIELD(domain_enum) domain : SYMBOL_DOMAIN_BITS;
/* Address class (for info_symbols). Note that we don't allow
synthetic "aclass" values here at present, simply because there's
/* For inferior function call events, discriminate whether event is
before or after the call. */
-typedef enum
+enum inferior_call_kind
{
/* Before the call */
INFERIOR_CALL_PRE,
/* after the call */
INFERIOR_CALL_POST,
-} inferior_call_kind;
+};
extern int emit_inferior_call_event (inferior_call_kind kind,
ptid_t thread, CORE_ADDR addr);
/* Different name domains for symbols. Looking up a symbol specifies a
domain and ignores symbol definitions in other name domains. */
-typedef enum domain_enum_tag
+enum domain_enum
{
/* UNDEF_DOMAIN is used when a domain has not been discovered or
none of the following apply. This usually indicates an error either
/* This must remain last. */
NR_DOMAINS
-} domain_enum;
+};
/* The number of bits in a symbol used to represent the domain. */
/* Domain code. */
- ENUM_BITFIELD(domain_enum_tag) m_domain : SYMBOL_DOMAIN_BITS;
+ ENUM_BITFIELD(domain_enum) m_domain : SYMBOL_DOMAIN_BITS;
/* Address class. This holds an index into the 'symbol_impls'
table. The actual enum address_class value is stored there,
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. */
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. */
#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. */
/* Xtensa register type. */
-typedef enum
+enum xtensa_register_type_t
{
xtRegisterTypeArRegfile = 1, /* Register File ar0..arXX. */
xtRegisterTypeSpecialReg, /* CPU states, such as PS, Booleans, (rsr). */
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. */
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. */
/* 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