From: Simon Marchi Date: Tue, 27 Oct 2020 14:28:27 +0000 (-0400) Subject: gdb: remove unused includes in xtensa-tdep.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5eb9e3f51758e8fff6020b136f5b193563fee014;p=binutils-gdb.git gdb: remove unused includes in xtensa-tdep.c include-what-you-use says that these includes are not necessary in xtensa-tdep.c: ../../../src/binutils-gdb/gdb/xtensa-tdep.c should remove these lines: - #include "dis-asm.h" // lines 29-29 - #include "dummy-frame.h" // lines 36-36 - #include "dwarf2.h" // lines 37-37 - #include "dwarf2/loc.h" // lines 39-39 - #include "inferior.h" // lines 30-30 - #include "objfiles.h" // lines 25-25 - #include "remote.h" // lines 45-45 - #include "serial.h" // lines 46-46 - #include "symfile.h" // lines 24-24 That looks about right, so remove them. Tested by re-building. gdb/ChangeLog: * xtensa-tdep.c: Remove includes. Change-Id: I9774ec59a68dd94e06967713d2f271b1760f6e6a --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 81d4c83a2ca..2ff3b165ddc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-10-27 Simon Marchi + + * xtensa-tdep.c: Remove includes. + 2020-10-27 Tankut Baris Aktemur * breakpoint.c (struct condition_command_opts): New struct. diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index 97486dea602..0eeaae1b584 100644 --- a/gdb/xtensa-tdep.c +++ b/gdb/xtensa-tdep.c @@ -21,29 +21,20 @@ #include "frame.h" #include "solib-svr4.h" #include "symtab.h" -#include "symfile.h" -#include "objfiles.h" #include "gdbtypes.h" #include "gdbcore.h" #include "value.h" -#include "dis-asm.h" -#include "inferior.h" #include "osabi.h" #include "regcache.h" #include "reggroups.h" #include "regset.h" -#include "dummy-frame.h" -#include "dwarf2.h" #include "dwarf2/frame.h" -#include "dwarf2/loc.h" #include "frame-base.h" #include "frame-unwind.h" #include "arch-utils.h" #include "gdbarch.h" -#include "remote.h" -#include "serial.h" #include "command.h" #include "gdbcmd.h"