From patchwork Wed Apr 17 22:05:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 88633 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 5D063385840B for ; Wed, 17 Apr 2024 22:05:55 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by sourceware.org (Postfix) with ESMTPS id D23633858D39 for ; Wed, 17 Apr 2024 22:05:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D23633858D39 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D23633858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::12d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713391523; cv=none; b=hYPesREFQptNiVk2lzDispluPR3j8VMk9neKCKyw+EY952IvXWOoh+KVExW/ldeHcIAv2K9Vvv7dtrhJAZI/qF6ngzIwRpBKecYvvDgdzvHi/IQK7FswBdfioIRs621dfC9zgbdP/dkW/oHLaqeDKecd32ZBDk6XziNnRE9Ebjs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713391523; c=relaxed/simple; bh=BDDT5A73SYt+A/9y89fZH5xdI72oZL+YDONRy+P+z3k=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=A7yVUcNSMFhxLDfidvGHswEgorI0oxTpetVgYDU7W2S/8WgqwiO9IsL5XJYeY1B1mplfmZT3vhi1U6ZKla1kfvA/1NoYPtrsT0jRR13N8rsEXBuFn3jTy643VKVbCvSlomkD1lqFkVYJTWOnU9GSej7bdSSPwI7FA6s+3Sdtl/o= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-36afb4b4a3eso664555ab.3 for ; Wed, 17 Apr 2024 15:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1713391520; x=1713996320; darn=sourceware.org; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2VUhuDTRZhosc+HJ8IdbQMgZjC2r+BFP4X0aoQzYXDs=; b=B0e0/FM1VBlgzn05pTf7mSk51nLBaXuHm6ysWj7bkepLpMIa5VRInSEM+wd6dMxOCS Pw+H1EfMqlZvof2h9mmEXw6LmJCR27QrWn81KH6iwQbCmgTlS9ttm26BbU4CS49gNoDW AcrycM5msJ+q45MUEND+DTD/XgrE6o0crfpCc+9zlAj7G/ITjvho+FoYlpG2fW1Rw2G3 hnehCDaqG5+YVkT6qlDX4BBkIJYposppjY18YP/89xHGKZ2ik8W/ivcGrvUCoRx6SH6l CjAzLQrQ5Xw6A3v2u+HD2ELhBXRhsNSvRyNHHKbzgpXj5HATy+Q2Cfw9V36dzvuG+n1N Ol9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713391520; x=1713996320; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2VUhuDTRZhosc+HJ8IdbQMgZjC2r+BFP4X0aoQzYXDs=; b=BcLfW7tk7R63Y5lGjE13tWc+17JgrA94sNrbUBgI8vODERl9//iMKz5oSvi8ZhaDjb Lti4etQofHk7P33+RIYOJnWMe0jCyUITJ3sAI2UCLXH/TrB3P5K/OX3hut2UB0djMLb9 rjnA/N7o0Y08XZEX6+w+9jjEJP/D1TpuiwDS+j91SOfZy8tLw7lmB0VElkz/XbXMzoD5 3967+ILYFxa2QEiiOr4o3B4EoxX6LaZyLLBt3FCTDUlCEN0oxsD6QYipO1F1Yzjoknfi WCspw0+aIsdegoMSCI+CCjG4DVx7vE2uerK5eNpx0frsbZLeacDSkmmnaqxWwGpKEnF6 wibQ== X-Gm-Message-State: AOJu0YwomCgU3XTVyHdF79ZtzqAMJ40AxaSUDbLQTJ83SEeSIpX5e7gb ex1qlvjsqVNEN8bcUM0XHX/4Cbx+ht1QmqK3JFyM20RzvEpBUwqd1x3sqP4XlWwRKPIEP64D9ZI = X-Google-Smtp-Source: AGHT+IHBJXIWfMcPbU6HqSKFgUvpDQMaE43VYVb7vaJj5OwznMGUR9cP9LspNPbNfoULsrekA8yU8A== X-Received: by 2002:a05:6e02:1a44:b0:36a:b4f3:7731 with SMTP id u4-20020a056e021a4400b0036ab4f37731mr1050838ilv.7.1713391519947; Wed, 17 Apr 2024 15:05:19 -0700 (PDT) Received: from localhost.localdomain (97-122-82-115.hlrn.qwest.net. [97.122.82.115]) by smtp.gmail.com with ESMTPSA id 3-20020a056e020ca300b0036b2fce985dsm22985ilg.62.2024.04.17.15.05.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 15:05:19 -0700 (PDT) From: Tom Tromey Date: Wed, 17 Apr 2024 16:05:05 -0600 Subject: [PATCH 1/4] Fix some minor header file irregularities MIME-Version: 1.0 Message-Id: <20240417-header-check-v1-1-a60f610f5bcc@adacore.com> References: <20240417-header-check-v1-0-a60f610f5bcc@adacore.com> In-Reply-To: <20240417-header-check-v1-0-a60f610f5bcc@adacore.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.13.0 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org The script in the next patch noticed some irregularities in some headers: trailing or leading blank lines, or in one case a missing copyright header. This patch fixes these. --- gdb/disasm-flags.h | 1 - gdb/gdbtypes.h | 1 - gdb/parser-defs.h | 1 - gdb/tracefile.h | 18 ++++++++++++++++++ gdb/windows-nat.h | 1 - gdb/xml-tdesc.h | 1 - 6 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gdb/disasm-flags.h b/gdb/disasm-flags.h index 4f711259453..b2f0ec95b07 100644 --- a/gdb/disasm-flags.h +++ b/gdb/disasm-flags.h @@ -38,4 +38,3 @@ enum gdb_disassembly_flag : unsigned DEF_ENUM_FLAGS_TYPE (enum gdb_disassembly_flag, gdb_disassembly_flags); #endif /* DISASM_FLAGS_H */ - diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index f80bd7e071a..55018f2c344 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1,4 +1,3 @@ - /* Internal type definitions for GDB. Copyright (C) 1992-2024 Free Software Foundation, Inc. diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index 5d3c1893836..9774a465ee2 100644 --- a/gdb/parser-defs.h +++ b/gdb/parser-defs.h @@ -390,4 +390,3 @@ extern bool fits_in_type (int n_sign, const gdb_mpz &n, int type_bits, extern void parser_fprintf (FILE *, const char *, ...) ATTRIBUTE_PRINTF (2, 3); #endif /* PARSER_DEFS_H */ - diff --git a/gdb/tracefile.h b/gdb/tracefile.h index 9c7fdea7297..90967eff855 100644 --- a/gdb/tracefile.h +++ b/gdb/tracefile.h @@ -1,3 +1,21 @@ +/* Tracefile declarations + Copyright (C) 2014-2024 Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + #ifndef TRACEFILE_H #define TRACEFILE_H 1 diff --git a/gdb/windows-nat.h b/gdb/windows-nat.h index 5422aa064e9..3fbb1ea35df 100644 --- a/gdb/windows-nat.h +++ b/gdb/windows-nat.h @@ -37,4 +37,3 @@ extern const int amd64_mappings[]; #endif #endif - diff --git a/gdb/xml-tdesc.h b/gdb/xml-tdesc.h index 823dbee0f2d..cd6e79cc24f 100644 --- a/gdb/xml-tdesc.h +++ b/gdb/xml-tdesc.h @@ -50,4 +50,3 @@ std::optional target_fetch_description_xml (target_ops *ops); const struct target_desc *string_read_description_xml (const char *xml); #endif /* XML_TDESC_H */ -