From patchwork Thu Apr 18 15:41:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 88664 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 6DACB385840C for ; Thu, 18 Apr 2024 15:42:33 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by sourceware.org (Postfix) with ESMTPS id B1CE43858D38 for ; Thu, 18 Apr 2024 15:42:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B1CE43858D38 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 B1CE43858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713454923; cv=none; b=GDaQibK0gsm94SjbIhYBh9glEmsOYIhfUG0vqcY5YOz60DembGfHvR3aBXBn0ylUbT0s49YKiNAI+I5uLWrCOF87Abo1rGmqapupVJDWfjYGCmwOLgjrszt8SDNeh/itJXAJMj3ELqmWppKYtY5yHB+BDNg0DSAWmCkbgnCwXYk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713454923; c=relaxed/simple; bh=BDDT5A73SYt+A/9y89fZH5xdI72oZL+YDONRy+P+z3k=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=bYOJ7X3GJJ9FuYqGiDP1kaa5i8NNK3b8piksMIRLDG5ss1mLInTGAGx1huU+1ttQ10FMXQbD3w7ioC0g07RFP8WM1NyfTXvnnLEzPnKd/5l3zqGtk3/heK+dOyJjpUC8KpGhO2x4qP1WeioA7LSDjGVYJ+ucyF8wsVr0hImpdmo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-7d9e70f388fso37981139f.2 for ; Thu, 18 Apr 2024 08:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1713454921; x=1714059721; 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=i6HWuhDZD6LYnZWkE/iNZvs9boJ8Z6UH/kJqLmjedyhW4sA436+duUJLRddOuyMpfK 985Wt2LVj36Apx5RsmPSY5LxwboPbVLnGA9AVHi/C9D29SBXYSP/XXuBd+JI9D3kyLKw Mh/ZWT53zeRFqQZ9z4/QfObPIh2MAXdESyA3zm2IwjEBFZ5OY1Hq0mcBrvIEj4uO+Tmm Ozxdh/ZMJ1qNLZX3YXGLawp5GzZT6/LLJTqrdebcSS32EkG+ZZWuu9yTwICPNoF/uv7p F3p6cIsoDD5yQ42Anb2SfkacVdcXbuIZJSTTeqTyoPo+IfY9rffaxl9w+e/XpLCE6xUp Z/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713454921; x=1714059721; 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=XBgztdA4dUw+yWIO7ckQpKXwKeHgZDlAPJ2S3QnywIVf6lyDm527kOiIifMEAeyDMd r1pkhObSL8pef04JYpIAgfdryeNGhB8N4vBq3U9zbtinu0aMtBbVjkmvEFc4oDbRutxK zoNRB4G8l0NWvvsEqpehOFPRBmINKrm4cMnKym3VmE66cI+TZr/oNCiksqgQmwnI/F/r kI7G9wB41EXhklJkHq2Nt+KyaXWelkXqoK2cN927KFgB9zKE5R5yRm5Dl8SzKAu1rBuR IOIU3zt5ruRSYmyIt6mjH336Qu+jL6PPc1Jca8FevavRzjNS+imKWiD//AekIPwmgGnd jApQ== X-Gm-Message-State: AOJu0YzfWdoio6szrqd1adeiy9JFNZQcPd6Tbx21ZbFazz2GQ1zM8U9P A48V9GKos2xwPGQpvVPai0lbkbUNZutsCznY0cEp1dOyOu2dv+Ao/1gPncgDa8KEeKSNZfEVejU = X-Google-Smtp-Source: AGHT+IG918C8wAdoeRadDvtcKjJMri8DUd5r88sjSsPvAfjetv9YZ7zVdkCBmdLoHNdQ6dsivmUKMg== X-Received: by 2002:a05:6602:1dcf:b0:7d5:e4ae:e661 with SMTP id hk15-20020a0566021dcf00b007d5e4aee661mr3938534iob.13.1713454920837; Thu, 18 Apr 2024 08:42:00 -0700 (PDT) Received: from localhost.localdomain (97-122-82-115.hlrn.qwest.net. [97.122.82.115]) by smtp.gmail.com with ESMTPSA id f5-20020a05660215c500b007d5e449ad60sm397412iow.22.2024.04.18.08.41.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 08:42:00 -0700 (PDT) From: Tom Tromey Date: Thu, 18 Apr 2024 09:41:56 -0600 Subject: [PATCH v2 1/4] Fix some minor header file irregularities MIME-Version: 1.0 Message-Id: <20240418-header-check-v2-1-725529851603@adacore.com> References: <20240418-header-check-v2-0-725529851603@adacore.com> In-Reply-To: <20240418-header-check-v2-0-725529851603@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 */ -