gdb: remove unused includes in xtensa-tdep.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 27 Oct 2020 14:28:27 +0000 (10:28 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 27 Oct 2020 14:28:27 +0000 (10:28 -0400)
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

gdb/ChangeLog
gdb/xtensa-tdep.c

index 81d4c83a2ca14c4d3cd228da4e33d56790c3fac6..2ff3b165ddc0ff558a52a7893219c6f678ea71a9 100644 (file)
@@ -1,3 +1,7 @@
+2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * xtensa-tdep.c: Remove includes.
+
 2020-10-27  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
 
        * breakpoint.c (struct condition_command_opts): New struct.
index 97486dea602231b3fbd90529c36c600633122e2b..0eeaae1b5848c524759296f66a79aa3466308ea7 100644 (file)
 #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"