aboutsummaryrefslogtreecommitdiff
path: root/gdb/z80-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-05-18 09:45:33 -0600
committerTom Tromey <tromey@adacore.com>2022-06-02 09:04:45 -0600
commitcc55e4ef62f102c4aff3b34ee2a134cdcc734897 (patch)
tree82f27b070048de97e41a80441e071c6b8eae6206 /gdb/z80-tdep.c
parent94e079e76e71951a97f74a61513a7b71adaa2a90 (diff)
downloadgdb-cc55e4ef62f102c4aff3b34ee2a134cdcc734897.zip
gdb-cc55e4ef62f102c4aff3b34ee2a134cdcc734897.tar.gz
gdb-cc55e4ef62f102c4aff3b34ee2a134cdcc734897.tar.bz2
ODR warning for "struct instruction_type"
"struct instruction_type" is defined in multiple .c files, causing an ODR warning. This patch renames the types. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22395
Diffstat (limited to 'gdb/z80-tdep.c')
-rw-r--r--gdb/z80-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/z80-tdep.c b/gdb/z80-tdep.c
index c2d906d..196884a 100644
--- a/gdb/z80-tdep.c
+++ b/gdb/z80-tdep.c
@@ -109,7 +109,7 @@ struct z80_unwind_cache
struct trad_frame_saved_reg *saved_regs;
};
-enum instruction_type
+enum z80_instruction_type
{
insn_default,
insn_z80,
@@ -144,7 +144,7 @@ struct insn_info
gdb_byte code;
gdb_byte mask;
gdb_byte size; /* without prefix(es) */
- enum instruction_type type;
+ enum z80_instruction_type type;
};
/* Constants */