From: Simon Marchi Date: Wed, 4 Dec 2019 18:33:02 +0000 (-0500) Subject: Remove unused includes in aarch64-linux-tdep.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be155ebb949dd8e7ef6a494a9c276c3c4673643c;p=binutils-gdb.git Remove unused includes in aarch64-linux-tdep.c 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f0ec1e6434f..50f32638b42 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2019-12-04 Simon Marchi + + * aarch64-linux-tdep.c: Remove includes. + 2019-12-04 Simon Marchi * aarch64-tdep.c: Remove includes. diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index c8e30a4fef2..1d4aac7a874 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -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" @@ -31,12 +30,11 @@ #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.