From 7f40ce1a9ea16720b9e9199a20173ed29285da9a Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 27 Oct 2020 10:37:58 -0400 Subject: [PATCH] gdb: remove unused includes in m32c-tdep.c include-what-you-use says: ../../../src/binutils-gdb/gdb/m32c-tdep.c should remove these lines: - #include "dis-asm.h" // lines 24-24 - #include "dwarf2/expr.h" // lines 31-31 - #include "dwarf2/frame.h" // lines 30-30 - #include "elf-bfd.h" // lines 21-21 - #include "elf/m32c.h" // lines 22-22 - #include "target.h" // lines 37-37 - struct m32c_reg; // lines 45-45 That looks right, remove them. Tested by rebuilding. gdb/ChangeLog: * m32c-tdep.c: Remove unused includes. Change-Id: I28b41795f3bcc5406488dbf272c9e86fd5781b6b --- gdb/ChangeLog | 4 ++++ gdb/m32c-tdep.c | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2ff3b165ddc..e620b2b561a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-10-27 Simon Marchi + + * m32c-tdep.c: Remove unused includes. + 2020-10-27 Simon Marchi * xtensa-tdep.c: Remove includes. diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index d579616b06a..d315076eb4c 100644 --- a/gdb/m32c-tdep.c +++ b/gdb/m32c-tdep.c @@ -18,23 +18,17 @@ along with this program. If not, see . */ #include "defs.h" -#include "elf-bfd.h" -#include "elf/m32c.h" #include "gdb/sim-m32c.h" -#include "dis-asm.h" #include "gdbtypes.h" #include "regcache.h" #include "arch-utils.h" #include "frame.h" #include "frame-unwind.h" -#include "dwarf2/frame.h" -#include "dwarf2/expr.h" #include "symtab.h" #include "gdbcore.h" #include "value.h" #include "reggroups.h" #include "prologue-value.h" -#include "target.h" #include "objfiles.h" @@ -42,8 +36,6 @@ static struct reggroup *m32c_dma_reggroup; -struct m32c_reg; - /* The type of a function that moves the value of REG between CACHE or BUF --- in either direction. */ typedef enum register_status (m32c_write_reg_t) (struct m32c_reg *reg, -- 2.30.2