From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AnygF8SV4ma7bSgAWB0awg (envelope-from ) for ; Thu, 12 Sep 2024 03:18:28 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=I2p3gbaX; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 352991E353; Thu, 12 Sep 2024 03:18:28 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-10.1 required=5.0 tests=ARC_SIGNED,ARC_VALID, BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 ESMTPS id CC4671E05C for ; Thu, 12 Sep 2024 03:18:26 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 70051385842C for ; Thu, 12 Sep 2024 07:18:26 +0000 (GMT) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by sourceware.org (Postfix) with ESMTPS id 8EEC13858D29 for ; Thu, 12 Sep 2024 07:17:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8EEC13858D29 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8EEC13858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726125488; cv=none; b=f256uXZ5+HW8QjpB6H2TILck8WmPv3K2GisQxo2TG72H5jfwabmMI3E7R/2N3WUIXmESG2v82Tj1Lgwb0oOmG3VM7eOfGxTuaYlFSU+ipG3xoOpkbwKaHBWV2fMMxs1YkOahv/QTN2IZBrocsnckoZET3YKDjfVUVXSjfYOHo+k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726125488; c=relaxed/simple; bh=ECVWxMZ8c7ACbYVQvQoxy9IObUaMB6yG8W6mBQ1slDw=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=uu9mOHyGrxX0ZaW1FYO84pnRL9RA1CLN5F7XJGrGUfTPi0E2JtAzkwc2Pr37EzSQQnUq5WsBN5rP/Cz2I/fdnRPtMowb+YnZAX12NxAA9K4EIynboxFseOyRnKcWjvhlOycieaLZXFQHMDb0htqQD0a8kkrCGO7K/oBHBG35qwE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726125478; x=1757661478; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=ECVWxMZ8c7ACbYVQvQoxy9IObUaMB6yG8W6mBQ1slDw=; b=I2p3gbaXIx2N4299zlhMltn95HLiCTRYrgPsAIEpG4ndS+gOewCRtxhV /HQScnDceauolDu4fzzCm79ofAZFXCR52Hg2wigMxwgmnFxuUG1KDfFqH QjTyOCWoRJFrha9a4xk1sgXRO6TKxjeg/005+s5G81IOWf4C0Tm//tex6 aT4P3Q9DIuRHpWu0vvjfvQ48bT0CZl+eMdTuD7UjxVGAw338jy5jMJRs1 R8LH/dggKxiqTTNgOn6EOhhrKD5GNcNYwCkXQmi9+/ygBU93wP0QUxZBa qH+tZyJWyRsDfX2HJDTv0to2ys0m1H7d9mMwrgjAL2bqabWde69WBP69C Q==; X-CSE-ConnectionGUID: yW13WTGESL64Dpxan5GYdw== X-CSE-MsgGUID: yKzKxskBTFSGFtcpQk4Xhg== X-IronPort-AV: E=McAfee;i="6700,10204,11192"; a="27878783" X-IronPort-AV: E=Sophos;i="6.10,222,1719903600"; d="scan'208";a="27878783" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2024 00:17:57 -0700 X-CSE-ConnectionGUID: 9NClCbZzRQyKv4SvsR0rZg== X-CSE-MsgGUID: iO8HbR95TS2U9X6LLh6VRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,222,1719903600"; d="scan'208";a="72417829" Received: from dut1513dg2mrb.igk.intel.com (HELO localhost) ([10.102.46.197]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2024 00:17:56 -0700 From: Klaus Gerlicher To: gdb-patches@sourceware.org Subject: [PATCH] gdb, testsuite: clean duplicate header includes Date: Thu, 12 Sep 2024 07:17:28 +0000 Message-Id: <20240912071728.1029978-1-klaus.gerlicher@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: "Gerlicher, Klaus" Some of the gdb and testsuite files double include some headers. While all headers use include guards, it helps a bit keeping the code base tidy. No functional change. --- gdb/cli/cli-cmds.c | 1 - gdb/fbsd-tdep.c | 1 - gdb/m2-typeprint.c | 1 - gdb/ppc-netbsd-tdep.c | 1 - gdb/stack.c | 1 - gdb/testsuite/gdb.arch/sparc64-adi.c | 1 - gdb/testsuite/gdb.base/reset-catchpoint-cond-lib.c | 1 - gdb/testsuite/gdb.debuginfod/corefile-mapped-file-3.c | 1 - gdb/testsuite/gdb.multi/multi-term-settings.c | 1 - gdb/testsuite/gdb.server/exit-multiple-threads.c | 1 - gdb/testsuite/gdb.threads/create-fail.c | 2 -- gdb/testsuite/gdb.threads/fork-thread-pending.c | 1 - gdb/testsuite/gdb.threads/watchpoint-fork-mt.c | 1 - gdb/valops.c | 1 - 14 files changed, 15 deletions(-) diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index fd8e27735f0..fd365d8680a 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -51,7 +51,6 @@ #include "cli/cli-cmds.h" #include "cli/cli-style.h" #include "cli/cli-utils.h" -#include "cli/cli-style.h" #include "extension.h" #include "gdbsupport/pathstuff.h" diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c index ac51f101d27..e97ff52d5bf 100644 --- a/gdb/fbsd-tdep.c +++ b/gdb/fbsd-tdep.c @@ -26,7 +26,6 @@ #include "regcache.h" #include "regset.h" #include "gdbthread.h" -#include "objfiles.h" #include "xml-syscall.h" #include #include diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c index c0ae72203c3..4ade1ce7e7a 100644 --- a/gdb/m2-typeprint.c +++ b/gdb/m2-typeprint.c @@ -27,7 +27,6 @@ #include "gdbcore.h" #include "m2-lang.h" #include "target.h" -#include "language.h" #include "demangle.h" #include "c-lang.h" #include "typeprint.h" diff --git a/gdb/ppc-netbsd-tdep.c b/gdb/ppc-netbsd-tdep.c index d8e4c424ba4..b412030ab9e 100644 --- a/gdb/ppc-netbsd-tdep.c +++ b/gdb/ppc-netbsd-tdep.c @@ -28,7 +28,6 @@ #include "ppc-tdep.h" #include "netbsd-tdep.h" -#include "ppc-tdep.h" #include "solib-svr4.h" /* Register offsets from . */ diff --git a/gdb/stack.c b/gdb/stack.c index b7a102eb2c3..7420780b5ed 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -50,7 +50,6 @@ #include "linespec.h" #include "cli/cli-utils.h" #include "objfiles.h" -#include "annotate.h" #include "symfile.h" #include "extension.h" diff --git a/gdb/testsuite/gdb.arch/sparc64-adi.c b/gdb/testsuite/gdb.arch/sparc64-adi.c index aee5aca7fc0..97f6a99e546 100644 --- a/gdb/testsuite/gdb.arch/sparc64-adi.c +++ b/gdb/testsuite/gdb.arch/sparc64-adi.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include diff --git a/gdb/testsuite/gdb.base/reset-catchpoint-cond-lib.c b/gdb/testsuite/gdb.base/reset-catchpoint-cond-lib.c index 350c0c074d5..06f3c3dec11 100644 --- a/gdb/testsuite/gdb.base/reset-catchpoint-cond-lib.c +++ b/gdb/testsuite/gdb.base/reset-catchpoint-cond-lib.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/gdb/testsuite/gdb.debuginfod/corefile-mapped-file-3.c b/gdb/testsuite/gdb.debuginfod/corefile-mapped-file-3.c index 45d78336930..98ed9526f73 100644 --- a/gdb/testsuite/gdb.debuginfod/corefile-mapped-file-3.c +++ b/gdb/testsuite/gdb.debuginfod/corefile-mapped-file-3.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include diff --git a/gdb/testsuite/gdb.multi/multi-term-settings.c b/gdb/testsuite/gdb.multi/multi-term-settings.c index 68802068893..e9e7e9592c8 100644 --- a/gdb/testsuite/gdb.multi/multi-term-settings.c +++ b/gdb/testsuite/gdb.multi/multi-term-settings.c @@ -22,7 +22,6 @@ #include #include #include -#include #include int diff --git a/gdb/testsuite/gdb.server/exit-multiple-threads.c b/gdb/testsuite/gdb.server/exit-multiple-threads.c index 989f1f2de57..5bf0fc8ff36 100644 --- a/gdb/testsuite/gdb.server/exit-multiple-threads.c +++ b/gdb/testsuite/gdb.server/exit-multiple-threads.c @@ -20,7 +20,6 @@ #include #include #include -#include /* The number of threads to create. */ int thread_count = 3; diff --git a/gdb/testsuite/gdb.threads/create-fail.c b/gdb/testsuite/gdb.threads/create-fail.c index 01633e40117..e4cd27e0b9e 100644 --- a/gdb/testsuite/gdb.threads/create-fail.c +++ b/gdb/testsuite/gdb.threads/create-fail.c @@ -23,10 +23,8 @@ #include #include #include -#include #include #include -#include #include /* Count the number of tasks/threads in the PID thread group. */ diff --git a/gdb/testsuite/gdb.threads/fork-thread-pending.c b/gdb/testsuite/gdb.threads/fork-thread-pending.c index 01dcc409932..a9b557aba49 100644 --- a/gdb/testsuite/gdb.threads/fork-thread-pending.c +++ b/gdb/testsuite/gdb.threads/fork-thread-pending.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c b/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c index b74a841d85d..eb65d45b666 100644 --- a/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c +++ b/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c @@ -27,7 +27,6 @@ #include #include -#include #define gettid() syscall (__NR_gettid) /* Non-atomic `var++' should not hurt as we synchronize the threads by the STEP diff --git a/gdb/valops.c b/gdb/valops.c index 427fbb1ad61..8b3888fa63b 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -40,7 +40,6 @@ #include "observable.h" #include "objfiles.h" #include "extension.h" -#include "gdbtypes.h" #include "gdbsupport/byte-vector.h" #include "typeprint.h" -- 2.34.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928