[4/7,gdb/NEWS] Add header text mentioning it's generated

Message ID 20261102163352.2416793-5-tdevries@suse.de
State New
Headers
Series Move NEWS items to gdb/doc/NEWS-* |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed

Commit Message

Tom de Vries Nov. 2, 2026, 4:33 p.m. UTC
  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(+)
  

Patch

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