From patchwork Tue Dec 3 04:25:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 36453 Received: (qmail 70718 invoked by alias); 3 Dec 2019 04:26:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 70655 invoked by uid 89); 3 Dec 2019 04:26:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_SOFTFAIL autolearn=ham version=3.3.1 spammy=auxvh, UD:auxv.h, auxv.h, HContent-Transfer-Encoding:8bit X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Dec 2019 04:26:02 +0000 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id HkxWWqHkEHHfcIqo (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 02 Dec 2019 23:26:00 -0500 (EST) Received: from simark.lan (unknown [192.222.164.54]) by smtp.ebox.ca (Postfix) with ESMTP id 3B288441B21; Mon, 2 Dec 2019 23:26:00 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 2/2] Remove unused includes in aarch64-linux-tdep.c Date: Mon, 2 Dec 2019 23:25:58 -0500 Message-Id: <20191203042558.2694627-2-simon.marchi@polymtl.ca> In-Reply-To: <20191203042558.2694627-1-simon.marchi@polymtl.ca> References: <20191203042558.2694627-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 X-IsSubscribed: yes 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/aarch64-linux-tdep.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index c8e30a4fef24..1d4aac7a8743 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.