[4/7,gdb/NEWS] Add header text mentioning it's generated
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
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(+)
@@ -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)
@@ -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