diff options
author | Tom Tromey <tromey@adacore.com> | 2022-05-18 09:45:33 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-06-02 09:04:45 -0600 |
commit | cc55e4ef62f102c4aff3b34ee2a134cdcc734897 (patch) | |
tree | 82f27b070048de97e41a80441e071c6b8eae6206 /gdb/z80-tdep.c | |
parent | 94e079e76e71951a97f74a61513a7b71adaa2a90 (diff) | |
download | gdb-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.c | 4 |
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 */ |