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

index 2ff3b165ddc0ff558a52a7893219c6f678ea71a9..e620b2b561a012e0b35f41547c29fc4809e65682 100644 (file)
@@ -1,3 +1,7 @@
+2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * m32c-tdep.c: Remove unused includes.
+
 2020-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * xtensa-tdep.c: Remove includes.
index d579616b06aa4a14b99362e78e50aa962fa09167..d315076eb4caf91c624f94ba054c468dbed866cd 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #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"
 
 \f
@@ -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,