From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 4/7] [gdb/NEWS] Add header text mentioning it's generated
Date: Mon, 2 Nov 2026 17:33:49 +0100 [thread overview]
Message-ID: <20261102163352.2416793-5-tdevries@suse.de> (raw)
In-Reply-To: <20261102163352.2416793-1-tdevries@suse.de>
Add two lines copied from gdb/gdbarch-gen.c, indicating to editors that the
file is generated and read-only.
Also add a line mentioning where changes are supposed to be made.
Prefix these lines with comment marker '#', making them stand out from the
actual contents of the file, and making it easy to filter them out.
---
gdb/NEWS | 4 ++++
gdb/doc/gen-news.sh | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/gdb/NEWS b/gdb/NEWS
index b6355240193..b6bccf4ee0d 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -1,3 +1,7 @@
+# THIS FILE IS GENERATED -*- buffer-read-only: t -*-
+# vi:set ro:
+# The contents of this generated file are maintained at gdb/doc/NEWS-*.
+#
What has changed in GDB?
(Organized release by release)
diff --git a/gdb/doc/gen-news.sh b/gdb/doc/gen-news.sh
index 64b6a0516d1..11c48dc661c 100755
--- a/gdb/doc/gen-news.sh
+++ b/gdb/doc/gen-news.sh
@@ -7,6 +7,10 @@ f=gdb/NEWS
gen_news ()
{
cat <<EOF
+# THIS FILE IS GENERATED -*- buffer-read-only: t -*-
+# vi:set ro:
+# The contents of this generated file are maintained at gdb/doc/NEWS-*.
+#
What has changed in GDB?
(Organized release by release)
EOF
--
2.51.0
next prev parent reply other threads:[~2026-11-02 16:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 16:33 [PATCH 0/7] [gdb/NEWS] Move NEWS items to gdb/doc/NEWS-* Tom de Vries
2026-11-02 16:33 ` [PATCH 1/7] [gdb/doc] Add NEWS-* files Tom de Vries
2026-11-02 16:33 ` [PATCH 2/7] [gdb/doc] Add gen-news.sh Tom de Vries
2026-11-02 16:33 ` [PATCH 3/7] [gdb/NEWS] Regenerate using gdb/doc/gen-news.sh Tom de Vries
2026-11-02 16:33 ` Tom de Vries [this message]
2026-11-02 16:33 ` [PATCH 5/7] [gdb/doc] Add gen-news.sh --check Tom de Vries
2026-11-02 16:33 ` [PATCH 6/7] [gdb/testsuite] Add gdb.src/news.exp Tom de Vries
2026-11-02 16:33 ` [PATCH 7/7] [pre-commit] Add check-news Tom de Vries
2026-11-02 17:06 ` [PATCH 0/7] [gdb/NEWS] Move NEWS items to gdb/doc/NEWS-* Eli Zaretskii
2026-11-02 17:15 ` Tom de Vries
2026-11-02 17:27 ` Tom de Vries
2026-11-20 17:56 ` Andrew Burgess
2026-11-20 18:59 ` Tom de Vries
2026-11-20 13:47 ` [PING] " Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261102163352.2416793-5-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox