Remove unused includes in aarch64-linux-tdep.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 4 Dec 2019 18:33:02 +0000 (13:33 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Dec 2019 18:33:02 +0000 (13:33 -0500)
include-what-you-use reports:

../../../src/binutils-gdb/gdb/aarch64-linux-tdep.c should remove these lines:
- #include "arch-utils.h"  // lines 24-24
- #include "auxv.h"  // lines 48-48
- #include "cli/cli-utils.h"  // lines 39-39
- #include "elf/common.h"  // lines 49-49
- #include "inferior.h"  // lines 35-35

Add an include for "target/target.h", otherwise target_read_memory isn't
found.

gdb/ChangeLog:

* aarch64-linux-tdep.c: Remove includes.

gdb/ChangeLog
gdb/aarch64-linux-tdep.c

index f0ec1e6434f65b45c134a6855942e66e634befb9..50f32638b42de5bcc3c66379651b55719be1c18e 100644 (file)
@@ -1,3 +1,7 @@
+2019-12-04  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * aarch64-linux-tdep.c: Remove includes.
+
 2019-12-04  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * aarch64-tdep.c: Remove includes.
index c8e30a4fef24d12bbf8a014f7b7e423a2a0e9e19..1d4aac7a874316f1ed98f007c7879e0a9dce5e6e 100644 (file)
@@ -21,7 +21,6 @@
 #include "defs.h"
 
 #include "gdbarch.h"
-#include "arch-utils.h"
 #include "glibc-tdep.h"
 #include "linux-tdep.h"
 #include "aarch64-tdep.h"
 #include "symtab.h"
 #include "tramp-frame.h"
 #include "trad-frame.h"
+#include "target/target.h"
 
-#include "inferior.h"
 #include "regcache.h"
 #include "regset.h"
 
-#include "cli/cli-utils.h"
 #include "stap-probe.h"
 #include "parser-defs.h"
 #include "user-regs.h"
@@ -45,8 +43,6 @@
 
 #include "record-full.h"
 #include "linux-record.h"
-#include "auxv.h"
-#include "elf/common.h"
 
 /* Signal frame handling.