From patchwork Thu Sep 28 17:47:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 76859 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3280E3882058 for ; Thu, 28 Sep 2023 17:48:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3280E3882058 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923305; bh=I3RJFYjzH/46oixGW9gENJWt2WSqcC99s4SMxSXKv4s=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=sIzQfVZIhjVcWGqCHf3MTavta6hpvCCW2P/q4HUmK3reON0IH2GJfX56R+/nSrUV0 RLN2NgDpJ8ZQgtcf1qBhqloZwqlV+pD9k0vlwZd4S3k8GUsGdIowiuots6YGZyDqa/ pf+AztK4bTpAkKWEvHyrE2AukCtyuhA27A6XYK54= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 1323B3881D35 for ; Thu, 28 Sep 2023 17:47:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1323B3881D35 Received: from smarchi-efficios.internal.efficios.com (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id C398F1E092; Thu, 28 Sep 2023 13:47:53 -0400 (EDT) To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 1/2] gdb: remove unused imports in solib*.[ch] Date: Thu, 28 Sep 2023 13:47:45 -0400 Message-ID: <20230928174752.389177-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3497.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Simon Marchi via Gdb-patches From: Simon Marchi Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" I'm starting to work on these files, I thought it would be a good time to remove unused imports. These were identified by include-what-you-use. Tested by rebuilding. Change-Id: I3eaf3fa0ea3506c7ecfbc8ecff5031433b1dadb8 --- gdb/solib-aix.c | 3 --- gdb/solib-darwin.c | 9 --------- gdb/solib-darwin.h | 1 - gdb/solib-dsbt.c | 5 ++--- gdb/solib-dsbt.h | 1 - gdb/solib-frv.c | 4 ---- gdb/solib-svr4.c | 1 - gdb/solib.c | 8 +------- 8 files changed, 3 insertions(+), 29 deletions(-) base-commit: 4ef9b04fa6c7669ca1deb8f725e5c5f904d3415a diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c index 93aa6c4e0407..fd6b1e7a4543 100644 --- a/gdb/solib-aix.c +++ b/gdb/solib-aix.c @@ -21,13 +21,10 @@ #include "solist.h" #include "inferior.h" #include "gdb_bfd.h" -#include "gdbcore.h" #include "objfiles.h" #include "symtab.h" #include "xcoffread.h" #include "observable.h" -#include "gdbcmd.h" -#include "gdbsupport/scope-exit.h" /* Our private data in struct so_list. */ diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c index 1f52dd463523..1dacc7ba6a50 100644 --- a/gdb/solib-darwin.c +++ b/gdb/solib-darwin.c @@ -19,26 +19,17 @@ #include "defs.h" -#include "symtab.h" #include "bfd.h" -#include "symfile.h" #include "objfiles.h" #include "gdbcore.h" #include "target.h" #include "inferior.h" #include "regcache.h" -#include "gdbthread.h" #include "gdb_bfd.h" #include "solist.h" -#include "solib.h" -#include "solib-svr4.h" #include "solib-darwin.h" -#include "bfd-target.h" -#include "elf-bfd.h" -#include "exec.h" -#include "auxv.h" #include "mach-o.h" #include "mach-o/external.h" diff --git a/gdb/solib-darwin.h b/gdb/solib-darwin.h index 6cb05e2fcfda..fb3e8abb2064 100644 --- a/gdb/solib-darwin.h +++ b/gdb/solib-darwin.h @@ -20,7 +20,6 @@ #ifndef SOLIB_DARWIN_H #define SOLIB_DARWIN_H -struct objfile; struct target_so_ops; extern const struct target_so_ops darwin_so_ops; diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c index b18c4a3e82a1..e0aa7f13c032 100644 --- a/gdb/solib-dsbt.c +++ b/gdb/solib-dsbt.c @@ -24,12 +24,11 @@ #include "solist.h" #include "objfiles.h" #include "symtab.h" -#include "language.h" #include "command.h" -#include "gdbcmd.h" -#include "elf-bfd.h" #include "gdb_bfd.h" #include "solib-dsbt.h" +#include "elf/common.h" +#include "cli/cli-cmds.h" #define GOT_MODULE_OFFSET 4 diff --git a/gdb/solib-dsbt.h b/gdb/solib-dsbt.h index 59964a67fdb3..2b8161e8c5a7 100644 --- a/gdb/solib-dsbt.h +++ b/gdb/solib-dsbt.h @@ -20,7 +20,6 @@ #ifndef SOLIB_DSBT_H #define SOLIB_DSBT_H -struct objfile; struct target_so_ops; extern const struct target_so_ops dsbt_so_ops; diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c index 8b0e3a6e0b05..152168c6edc7 100644 --- a/gdb/solib-frv.c +++ b/gdb/solib-frv.c @@ -18,16 +18,12 @@ #include "defs.h" -#include "inferior.h" #include "gdbcore.h" #include "solib.h" #include "solist.h" #include "frv-tdep.h" #include "objfiles.h" #include "symtab.h" -#include "language.h" -#include "command.h" -#include "gdbcmd.h" #include "elf/frv.h" #include "gdb_bfd.h" diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index f5fdbc742e7e..521e08c3c938 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -32,7 +32,6 @@ #include "inferior.h" #include "infrun.h" #include "regcache.h" -#include "gdbthread.h" #include "observable.h" #include "solist.h" diff --git a/gdb/solib.c b/gdb/solib.c index 771954e51c8f..e2636f06783c 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -19,7 +19,6 @@ #include "defs.h" -#include #include #include "symtab.h" #include "bfd.h" @@ -30,12 +29,9 @@ #include "command.h" #include "target.h" #include "frame.h" -#include "gdbsupport/gdb_regex.h" #include "inferior.h" #include "gdbsupport/environ.h" -#include "language.h" -#include "gdbcmd.h" -#include "completer.h" +#include "cli/cli-cmds.h" #include "elf/external.h" #include "elf/common.h" #include "filenames.h" @@ -43,7 +39,6 @@ #include "solist.h" #include "observable.h" #include "readline/tilde.h" -#include "remote.h" #include "solib.h" #include "interps.h" #include "filesystem.h" @@ -53,7 +48,6 @@ #include "debuginfod-support.h" #include "source.h" #include "cli/cli-style.h" -#include "solib-target.h" /* See solib.h. */