From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gdb-patches-bounces~public-inbox=simark.ca@sourceware.org>
Received: from simark.ca
	by simark.ca with LMTP
	id AnygF8SV4ma7bSgAWB0awg
	(envelope-from <gdb-patches-bounces~public-inbox=simark.ca@sourceware.org>)
	for <public-inbox@simark.ca>; 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 <public-inbox@simark.ca>; 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 <public-inbox@simark.ca>; 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 <gdb-patches@sourceware.org>; 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 <klaus.gerlicher@intel.com>
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 <gdb-patches.sourceware.org>
List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>,
 <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe>
List-Archive: <https://sourceware.org/pipermail/gdb-patches/>
List-Post: <mailto:gdb-patches@sourceware.org>
List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help>
List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>,
 <mailto:gdb-patches-request@sourceware.org?subject=subscribe>
Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org

From: "Gerlicher, Klaus" <klaus.gerlicher@intel.com>

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 <sys/socket.h>
 #include <arpa/inet.h>
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 <machine/reg.h>.  */
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 <string.h>
 #include <signal.h>
 #include <sys/shm.h>
-#include <errno.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
 #include <fcntl.h>
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 <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>
-#include <unistd.h>
 #include <assert.h>
 #include <stdlib.h>
 
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 <sys/stat.h>
 #include <fcntl.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <unistd.h>
 #include <sys/mman.h>
 
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 <stdio.h>
 #include <sys/types.h>
 #include <termios.h>
-#include <unistd.h>
 #include <signal.h>
 
 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 <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 /* 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 <errno.h>
 #include <string.h>
 #include <assert.h>
-#include <stdio.h>
 #include <sys/types.h>
 #include <dirent.h>
-#include <assert.h>
 #include <unistd.h>
 
 /* 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 <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 
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 <pthread.h>
 
 #include <asm/unistd.h>
-#include <unistd.h>
 #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


From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gdb-patches-bounces~public-inbox=simark.ca@sourceware.org>
Received: from simark.ca
	by simark.ca with LMTP
	id 6yMaD43E42YibikAWB0awg
	(envelope-from <gdb-patches-bounces~public-inbox=simark.ca@sourceware.org>)
	for <public-inbox@simark.ca>; Fri, 13 Sep 2024 00:50:21 -0400
Authentication-Results: simark.ca;
	dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UumODsOV;
	dkim-atps=neutral
Received: by simark.ca (Postfix, from userid 112)
	id 19DB91E353; Fri, 13 Sep 2024 00:50:21 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca
X-Spam-Level: 
X-Spam-Status: No, score=-12.8 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_HI,RCVD_IN_VALIDITY_CERTIFIED,
	RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE 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 8AA861E05C
	for <public-inbox@simark.ca>; Fri, 13 Sep 2024 00:50:20 -0400 (EDT)
Received: from server2.sourceware.org (localhost [IPv6:::1])
	by sourceware.org (Postfix) with ESMTP id 0CE4A3858C78
	for <public-inbox@simark.ca>; Fri, 13 Sep 2024 04:50:20 +0000 (GMT)
Received: from us-smtp-delivery-124.mimecast.com
 (us-smtp-delivery-124.mimecast.com [170.10.129.124])
 by sourceware.org (Postfix) with ESMTP id 41AAD3858D28
 for <gdb-patches@sourceware.org>; Fri, 13 Sep 2024 04:49:59 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 41AAD3858D28
Authentication-Results: sourceware.org;
 dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 41AAD3858D28
Authentication-Results: server2.sourceware.org;
 arc=none smtp.remote-ip=170.10.129.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726203001; cv=none;
 b=iS4TvfvFY4dnNPmrLi1KOHQha7WPWJVFlNb+aA92PKQ/eklXpZg4kBGX11qmMxNIfW58jERaErYc7SU2VPL/B1CWIOdBJL9S3QN+DGljydh2GeoxMSuAlLqdWjZlWCKx+djeWz380QO7QvD4F3Mq9ai61z391Qi6QsFAH6gK7yM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1726203001; c=relaxed/simple;
 bh=NvYNuMs4CmGPNnWZ3+J5qaSdkqaqlomaomjjPtwO+Q4=;
 h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
 b=lx/5vgTfHZggWO4x7+YH2TlqMkRX7tPqrmqPkQCN/5Nss+UGtlIVWPF7l4eTnGFiMoyVhd0FPBOxfmBWGk+Zley5YevAQNB9+IPHaNZN4fjCXxQyNoONQZU0UG6dnGdPY7Wt0wTfxdZbKGRAr5hQrBAi/mes9xdnL3ULaTQggBk=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1726202998;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=02vKINoKV9Hb0HIUyi/+99BayTg5199EewubIOkYY+8=;
 b=UumODsOVT92MDKh2SSUo7ujOKDhzkE1sieysNrYHcg3A57l8maB7ZOQeb1zHrtWde3O60V
 yhYfFnCA1yGK7kRKq1Jq1dxYScwi2bwRmF8UJnToR3CfumsxtRtM3X5XXlirn8Ron3fasO
 gyh4bEonDWPzee+lJ2VHAUR/8gDVioE=
Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com
 (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by
 relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,
 cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-KuSW1KKvMtyCHDhnRW2nSQ-1; Fri,
 13 Sep 2024 00:49:57 -0400
X-MC-Unique: KuSW1KKvMtyCHDhnRW2nSQ-1
Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com
 (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS
 id 6D32C1955F2C; Fri, 13 Sep 2024 04:49:56 +0000 (UTC)
Received: from f40-zbm-amd (unknown [10.22.65.0])
 by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS
 id 9D1A819560AA; Fri, 13 Sep 2024 04:49:55 +0000 (UTC)
Date: Thu, 12 Sep 2024 21:49:53 -0700
From: Kevin Buettner <kevinb@redhat.com>
To: Klaus Gerlicher <klaus.gerlicher@intel.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb, testsuite: clean duplicate header includes
Message-ID: <20240912214953.7bd4b3d7@f40-zbm-amd>
In-Reply-To: <20240912071728.1029978-1-klaus.gerlicher@intel.com>
References: <20240912071728.1029978-1-klaus.gerlicher@intel.com>
Organization: Red Hat
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
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 <gdb-patches.sourceware.org>
List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>,
 <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe>
List-Archive: <https://sourceware.org/pipermail/gdb-patches/>
List-Post: <mailto:gdb-patches@sourceware.org>
List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help>
List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>,
 <mailto:gdb-patches-request@sourceware.org?subject=subscribe>
Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org

On Thu, 12 Sep 2024 07:17:28 +0000
Klaus Gerlicher <klaus.gerlicher@intel.com> wrote:

> From: "Gerlicher, Klaus" <klaus.gerlicher@intel.com>
> 
> 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(-)

I'm surprised at how many source file double-included headers!

Approved-by: Kevin Buettner <kevinb@redhat.com>


