This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: mark read-only sources with buffer-read-only


Pedro pointed out to me that BFD puts a marker into read-only sources in
the source tree so that Emacs users won't edit them accidentally.  This
seemed like a good idea to apply to gdb as well.

This patch changes copying.awk, gdbarch.sh, and target-descriptions.c to
print the necessary cookie.  Then it rebuilds all the generated files.

In the absence of comments I plan to check it in.


I did want to point out that rebuilding features/arm-with-iwmmxt.c
introduced an unrelated change:

@@ -27,7 +28,7 @@ initialize_tdesc_arm_with_iwmmxt (void)
   tdesc_create_reg (feature, "r8", 8, 1, NULL, 32, "uint32");
   tdesc_create_reg (feature, "r9", 9, 1, NULL, 32, "uint32");
   tdesc_create_reg (feature, "r10", 10, 1, NULL, 32, "uint32");
-  tdesc_create_reg (feature, "r11", 11, 1, NULL, 32, "data_ptr");
+  tdesc_create_reg (feature, "r11", 11, 1, NULL, 32, "uint32");
   tdesc_create_reg (feature, "r12", 12, 1, NULL, 32, "uint32");
   tdesc_create_reg (feature, "sp", 13, 1, NULL, 32, "data_ptr");
   tdesc_create_reg (feature, "lr", 14, 1, NULL, 32, "int");

I have no idea whether this is correct.

It is pretty clear from this exercise that the features/**/*.c files are
not regularly updated when target-descriptions.c is changed.  Whoops.

Tom

2012-07-26  Tom Tromey  <tromey@redhat.com>

	* copying.awk: Print buffer-read-only marker.
	* copying.c: Rebuild.
	* gdbarch.sh (copyright): Print buffer-read-only marker.
	* gdbarch.c, gdbarch.h: Rebuild.
	* target-descriptions.c (maint_print_c_tdesc_cmd): Print
	buffer-read-only marker.
	* features/arm-with-iwmmxt.c: Rebuild.
	* features/arm-with-m-fpa-layout.c: Rebuild.
	* features/arm-with-m-vfp-d16.c: Rebuild.
	* features/arm-with-m.c: Rebuild.
	* features/arm-with-neon.c: Rebuild.
	* features/arm-with-vfpv2.c: Rebuild.
	* features/arm-with-vfpv3.c: Rebuild.
	* features/i386/amd64-avx-linux.c: Rebuild.
	* features/i386/amd64-avx.c: Rebuild.
	* features/i386/amd64-linux.c: Rebuild.
	* features/i386/amd64.c: Rebuild.
	* features/i386/i386-avx-linux.c: Rebuild.
	* features/i386/i386-avx.c: Rebuild.
	* features/i386/i386-linux.c: Rebuild.
	* features/i386/i386-mmx-linux.c: Rebuild.
	* features/i386/i386-mmx.c: Rebuild.
	* features/i386/i386.c: Rebuild.
	* features/i386/x32-avx-linux.c: Rebuild.
	* features/i386/x32-avx.c: Rebuild.
	* features/i386/x32-linux.c: Rebuild.
	* features/i386/x32.c: Rebuild.
	* features/mips-dsp-linux.c: Rebuild.
	* features/mips-linux.c: Rebuild.
	* features/mips64-dsp-linux.c: Rebuild.
	* features/mips64-linux.c: Rebuild.
	* features/rs6000/powerpc-32.c: Rebuild.
	* features/rs6000/powerpc-32l.c: Rebuild.
	* features/rs6000/powerpc-403.c: Rebuild.
	* features/rs6000/powerpc-403gc.c: Rebuild.
	* features/rs6000/powerpc-405.c: Rebuild.
	* features/rs6000/powerpc-505.c: Rebuild.
	* features/rs6000/powerpc-601.c: Rebuild.
	* features/rs6000/powerpc-602.c: Rebuild.
	* features/rs6000/powerpc-603.c: Rebuild.
	* features/rs6000/powerpc-604.c: Rebuild.
	* features/rs6000/powerpc-64.c: Rebuild.
	* features/rs6000/powerpc-64l.c: Rebuild.
	* features/rs6000/powerpc-7400.c: Rebuild.
	* features/rs6000/powerpc-750.c: Rebuild.
	* features/rs6000/powerpc-860.c: Rebuild.
	* features/rs6000/powerpc-altivec32.c: Rebuild.
	* features/rs6000/powerpc-altivec32l.c: Rebuild.
	* features/rs6000/powerpc-altivec64.c: Rebuild.
	* features/rs6000/powerpc-altivec64l.c: Rebuild.
	* features/rs6000/powerpc-cell32l.c: Rebuild.
	* features/rs6000/powerpc-cell64l.c: Rebuild.
	* features/rs6000/powerpc-e500.c: Rebuild.
	* features/rs6000/powerpc-e500l.c: Rebuild.
	* features/rs6000/powerpc-isa205-32l.c: Rebuild.
	* features/rs6000/powerpc-isa205-64l.c: Rebuild.
	* features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
	* features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
	* features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
	* features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
	* features/rs6000/powerpc-vsx32.c: Rebuild.
	* features/rs6000/powerpc-vsx32l.c: Rebuild.
	* features/rs6000/powerpc-vsx64.c: Rebuild.
	* features/rs6000/powerpc-vsx64l.c: Rebuild.
	* features/rs6000/rs6000.c: Rebuild.
	* features/s390-linux32.c: Rebuild.
	* features/s390-linux32v1.c: Rebuild.
	* features/s390-linux32v2.c: Rebuild.
	* features/s390-linux64.c: Rebuild.
	* features/s390-linux64v1.c: Rebuild.
	* features/s390-linux64v2.c: Rebuild.
	* features/s390x-linux64.c: Rebuild.
	* features/s390x-linux64v1.c: Rebuild.
	* features/s390x-linux64v2.c: Rebuild.
	* features/tic6x-c62x-linux.c: Rebuild.
	* features/tic6x-c62x.c: Rebuild.
	* features/tic6x-c64x-linux.c: Rebuild.
	* features/tic6x-c64x.c: Rebuild.
	* features/tic6x-c64xp-linux.c: Rebuild.
	* features/tic6x-c64xp.c: Rebuild.

diff --git a/gdb/copying.awk b/gdb/copying.awk
index 00c63cd..72070d1 100644
--- a/gdb/copying.awk
+++ b/gdb/copying.awk
@@ -1,7 +1,8 @@
 BEGIN	{
 	  FS="\"";
-	  print "/* ==> Do not modify this file!!  It is created automatically";
-	  print "   by copying.awk.  Modify copying.awk instead.  <== */";
+	  print "/* ==> Do not modify this file!!  -*- buffer-read-only: t -*-";
+	  print "   It is created automatically by copying.awk.";
+	  print "   Modify copying.awk instead.  <== */";
 	  print ""
 	  print "#include \"defs.h\""
 	  print "#include \"command.h\""
diff --git a/gdb/copying.c b/gdb/copying.c
index c71c4e5..8b86c05 100644
--- a/gdb/copying.c
+++ b/gdb/copying.c
@@ -1,5 +1,6 @@
-/* ==> Do not modify this file!!  It is created automatically
-   by copying.awk.  Modify copying.awk instead.  <== */
+/* ==> Do not modify this file!!  -*- buffer-read-only: t -*-
+   It is created automatically by copying.awk.
+   Modify copying.awk instead.  <== */
 
 #include "defs.h"
 #include "command.h"
diff --git a/gdb/features/arm-with-iwmmxt.c b/gdb/features/arm-with-iwmmxt.c
index d3b5fe9..e9f29c1 100644
--- a/gdb/features/arm-with-iwmmxt.c
+++ b/gdb/features/arm-with-iwmmxt.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: arm-with-iwmmxt.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: arm-with-iwmmxt.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -27,7 +28,7 @@ initialize_tdesc_arm_with_iwmmxt (void)
   tdesc_create_reg (feature, "r8", 8, 1, NULL, 32, "uint32");
   tdesc_create_reg (feature, "r9", 9, 1, NULL, 32, "uint32");
   tdesc_create_reg (feature, "r10", 10, 1, NULL, 32, "uint32");
-  tdesc_create_reg (feature, "r11", 11, 1, NULL, 32, "data_ptr");
+  tdesc_create_reg (feature, "r11", 11, 1, NULL, 32, "uint32");
   tdesc_create_reg (feature, "r12", 12, 1, NULL, 32, "uint32");
   tdesc_create_reg (feature, "sp", 13, 1, NULL, 32, "data_ptr");
   tdesc_create_reg (feature, "lr", 14, 1, NULL, 32, "int");
diff --git a/gdb/features/arm-with-m-fpa-layout.c b/gdb/features/arm-with-m-fpa-layout.c
index 6531c3d..45ad50f 100644
--- a/gdb/features/arm-with-m-fpa-layout.c
+++ b/gdb/features/arm-with-m-fpa-layout.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: arm-with-m-fpa-layout.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: arm-with-m-fpa-layout.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/arm-with-m-vfp-d16.c b/gdb/features/arm-with-m-vfp-d16.c
index cadeaf1..5b764f1 100644
--- a/gdb/features/arm-with-m-vfp-d16.c
+++ b/gdb/features/arm-with-m-vfp-d16.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: arm-with-m-vfp-d16.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: arm-with-m-vfp-d16.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/arm-with-m.c b/gdb/features/arm-with-m.c
index 2ac3df9..323d614 100644
--- a/gdb/features/arm-with-m.c
+++ b/gdb/features/arm-with-m.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: arm-with-m.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: arm-with-m.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/arm-with-neon.c b/gdb/features/arm-with-neon.c
index d7df4e9..05b01a4 100644
--- a/gdb/features/arm-with-neon.c
+++ b/gdb/features/arm-with-neon.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: arm-with-neon.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: arm-with-neon.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/arm-with-vfpv2.c b/gdb/features/arm-with-vfpv2.c
index 7b014cd..300f4d3 100644
--- a/gdb/features/arm-with-vfpv2.c
+++ b/gdb/features/arm-with-vfpv2.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: arm-with-vfpv2.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: arm-with-vfpv2.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/arm-with-vfpv3.c b/gdb/features/arm-with-vfpv3.c
index f66524c..ca50f27 100644
--- a/gdb/features/arm-with-vfpv3.c
+++ b/gdb/features/arm-with-vfpv3.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: arm-with-vfpv3.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: arm-with-vfpv3.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/i386/amd64-avx-linux.c b/gdb/features/i386/amd64-avx-linux.c
index 73392d3..8760b83 100644
--- a/gdb/features/i386/amd64-avx-linux.c
+++ b/gdb/features/i386/amd64-avx-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: amd64-avx-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: amd64-avx-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_amd64_avx_linux (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64"));
 
diff --git a/gdb/features/i386/amd64-avx.c b/gdb/features/i386/amd64-avx.c
index 05c60ff..579411c 100644
--- a/gdb/features/i386/amd64-avx.c
+++ b/gdb/features/i386/amd64-avx.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: amd64-avx.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: amd64-avx.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_amd64_avx (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64"));
 
diff --git a/gdb/features/i386/amd64-linux.c b/gdb/features/i386/amd64-linux.c
index 71efcbe..17543cb 100644
--- a/gdb/features/i386/amd64-linux.c
+++ b/gdb/features/i386/amd64-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: amd64-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: amd64-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_amd64_linux (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64"));
 
diff --git a/gdb/features/i386/amd64.c b/gdb/features/i386/amd64.c
index 154e8df..aa04ac0 100644
--- a/gdb/features/i386/amd64.c
+++ b/gdb/features/i386/amd64.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: amd64.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: amd64.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_amd64 (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386:x86-64"));
 
diff --git a/gdb/features/i386/i386-avx-linux.c b/gdb/features/i386/i386-avx-linux.c
index 1aa939b..c615695 100644
--- a/gdb/features/i386/i386-avx-linux.c
+++ b/gdb/features/i386/i386-avx-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: i386-avx-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: i386-avx-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_i386_avx_linux (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386"));
 
diff --git a/gdb/features/i386/i386-avx.c b/gdb/features/i386/i386-avx.c
index 1e74ed5..4f903d6 100644
--- a/gdb/features/i386/i386-avx.c
+++ b/gdb/features/i386/i386-avx.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: i386-avx.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: i386-avx.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_i386_avx (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386"));
 
diff --git a/gdb/features/i386/i386-linux.c b/gdb/features/i386/i386-linux.c
index cc1fb99..c141d84 100644
--- a/gdb/features/i386/i386-linux.c
+++ b/gdb/features/i386/i386-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: i386-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: i386-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_i386_linux (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386"));
 
diff --git a/gdb/features/i386/i386-mmx-linux.c b/gdb/features/i386/i386-mmx-linux.c
index 872826a..7ca0f62 100644
--- a/gdb/features/i386/i386-mmx-linux.c
+++ b/gdb/features/i386/i386-mmx-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: i386-mmx-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: i386-mmx-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/i386/i386-mmx.c b/gdb/features/i386/i386-mmx.c
index 7ca2467..ff5fa34 100644
--- a/gdb/features/i386/i386-mmx.c
+++ b/gdb/features/i386/i386-mmx.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: i386-mmx.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: i386-mmx.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/i386/i386.c b/gdb/features/i386/i386.c
index 7f7beb3..6ef012a 100644
--- a/gdb/features/i386/i386.c
+++ b/gdb/features/i386/i386.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: i386.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: i386.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_i386 (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386"));
 
diff --git a/gdb/features/i386/x32-avx-linux.c b/gdb/features/i386/x32-avx-linux.c
index d2e5ce9..b23a15f 100644
--- a/gdb/features/i386/x32-avx-linux.c
+++ b/gdb/features/i386/x32-avx-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: x32-avx-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: x32-avx-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_x32_avx_linux (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386:x64-32"));
 
diff --git a/gdb/features/i386/x32-avx.c b/gdb/features/i386/x32-avx.c
index 47d7305..7a8e954 100644
--- a/gdb/features/i386/x32-avx.c
+++ b/gdb/features/i386/x32-avx.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: x32-avx.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: x32-avx.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_x32_avx (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386:x64-32"));
 
diff --git a/gdb/features/i386/x32-linux.c b/gdb/features/i386/x32-linux.c
index b42287d..58552be 100644
--- a/gdb/features/i386/x32-linux.c
+++ b/gdb/features/i386/x32-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: x32-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: x32-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_x32_linux (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386:x64-32"));
 
diff --git a/gdb/features/i386/x32.c b/gdb/features/i386/x32.c
index 6342ddd..9cb524e 100644
--- a/gdb/features/i386/x32.c
+++ b/gdb/features/i386/x32.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: x32.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: x32.xml */
 
 #include "defs.h"
 #include "osabi.h"
@@ -10,7 +11,8 @@ initialize_tdesc_x32 (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("i386:x64-32"));
 
diff --git a/gdb/features/mips-dsp-linux.c b/gdb/features/mips-dsp-linux.c
index 20e4ee3..c352c52 100644
--- a/gdb/features/mips-dsp-linux.c
+++ b/gdb/features/mips-dsp-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: mips-dsp-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: mips-dsp-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/mips-linux.c b/gdb/features/mips-linux.c
index b0181eb..15530f4 100644
--- a/gdb/features/mips-linux.c
+++ b/gdb/features/mips-linux.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: mips-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: mips-linux.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_mips_linux;
@@ -12,6 +14,8 @@ initialize_tdesc_mips_linux (void)
 
   set_tdesc_architecture (result, bfd_scan_arch ("mips"));
 
+  set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux"));
+
   feature = tdesc_create_feature (result, "org.gnu.gdb.mips.cpu");
   tdesc_create_reg (feature, "r0", 0, 1, NULL, 32, "int");
   tdesc_create_reg (feature, "r1", 1, 1, NULL, 32, "int");
diff --git a/gdb/features/mips64-dsp-linux.c b/gdb/features/mips64-dsp-linux.c
index 3e67990..ae5e64d 100644
--- a/gdb/features/mips64-dsp-linux.c
+++ b/gdb/features/mips64-dsp-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: mips64-dsp-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: mips64-dsp-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/mips64-linux.c b/gdb/features/mips64-linux.c
index f214d12..b8edad7 100644
--- a/gdb/features/mips64-linux.c
+++ b/gdb/features/mips64-linux.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: mips64-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: mips64-linux.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_mips64_linux;
diff --git a/gdb/features/rs6000/powerpc-32.c b/gdb/features/rs6000/powerpc-32.c
index 1a1bdaa..ce4adb8 100644
--- a/gdb/features/rs6000/powerpc-32.c
+++ b/gdb/features/rs6000/powerpc-32.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-32.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-32.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_32;
diff --git a/gdb/features/rs6000/powerpc-32l.c b/gdb/features/rs6000/powerpc-32l.c
index d562189..ad0901f 100644
--- a/gdb/features/rs6000/powerpc-32l.c
+++ b/gdb/features/rs6000/powerpc-32l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-32l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-32l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_32l;
diff --git a/gdb/features/rs6000/powerpc-403.c b/gdb/features/rs6000/powerpc-403.c
index 990ed76..9056c82 100644
--- a/gdb/features/rs6000/powerpc-403.c
+++ b/gdb/features/rs6000/powerpc-403.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-403.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-403.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_403;
diff --git a/gdb/features/rs6000/powerpc-403gc.c b/gdb/features/rs6000/powerpc-403gc.c
index 315b9ff..e72a51e 100644
--- a/gdb/features/rs6000/powerpc-403gc.c
+++ b/gdb/features/rs6000/powerpc-403gc.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-403gc.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-403gc.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_403gc;
diff --git a/gdb/features/rs6000/powerpc-405.c b/gdb/features/rs6000/powerpc-405.c
index 3330535..ddd2b29 100644
--- a/gdb/features/rs6000/powerpc-405.c
+++ b/gdb/features/rs6000/powerpc-405.c
@@ -1,7 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-405.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-405.xml */
 
 #include "defs.h"
-#include "gdbtypes.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_405;
diff --git a/gdb/features/rs6000/powerpc-505.c b/gdb/features/rs6000/powerpc-505.c
index 4974505..b976c32 100644
--- a/gdb/features/rs6000/powerpc-505.c
+++ b/gdb/features/rs6000/powerpc-505.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-505.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-505.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_505;
diff --git a/gdb/features/rs6000/powerpc-601.c b/gdb/features/rs6000/powerpc-601.c
index 7d7e440..abe312e 100644
--- a/gdb/features/rs6000/powerpc-601.c
+++ b/gdb/features/rs6000/powerpc-601.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-601.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-601.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_601;
diff --git a/gdb/features/rs6000/powerpc-602.c b/gdb/features/rs6000/powerpc-602.c
index c71e45a..9fce4a8 100644
--- a/gdb/features/rs6000/powerpc-602.c
+++ b/gdb/features/rs6000/powerpc-602.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-602.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-602.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_602;
diff --git a/gdb/features/rs6000/powerpc-603.c b/gdb/features/rs6000/powerpc-603.c
index e2e3275..396cc84 100644
--- a/gdb/features/rs6000/powerpc-603.c
+++ b/gdb/features/rs6000/powerpc-603.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-603.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-603.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_603;
diff --git a/gdb/features/rs6000/powerpc-604.c b/gdb/features/rs6000/powerpc-604.c
index 24f2f14..4b8da40 100644
--- a/gdb/features/rs6000/powerpc-604.c
+++ b/gdb/features/rs6000/powerpc-604.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-604.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-604.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_604;
diff --git a/gdb/features/rs6000/powerpc-64.c b/gdb/features/rs6000/powerpc-64.c
index 826af38..2566052 100644
--- a/gdb/features/rs6000/powerpc-64.c
+++ b/gdb/features/rs6000/powerpc-64.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-64.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-64.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_64;
diff --git a/gdb/features/rs6000/powerpc-64l.c b/gdb/features/rs6000/powerpc-64l.c
index 7b83a70..5200578 100644
--- a/gdb/features/rs6000/powerpc-64l.c
+++ b/gdb/features/rs6000/powerpc-64l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-64l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-64l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_64l;
diff --git a/gdb/features/rs6000/powerpc-7400.c b/gdb/features/rs6000/powerpc-7400.c
index 882dde9..e9d9edc 100644
--- a/gdb/features/rs6000/powerpc-7400.c
+++ b/gdb/features/rs6000/powerpc-7400.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-7400.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-7400.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_7400;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_7400 (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   feature = tdesc_create_feature (result, "org.gnu.gdb.power.core");
   tdesc_create_reg (feature, "r0", 0, 1, NULL, 32, "uint32");
diff --git a/gdb/features/rs6000/powerpc-750.c b/gdb/features/rs6000/powerpc-750.c
index 8af9e80..1623ce8 100644
--- a/gdb/features/rs6000/powerpc-750.c
+++ b/gdb/features/rs6000/powerpc-750.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-750.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-750.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_750;
diff --git a/gdb/features/rs6000/powerpc-860.c b/gdb/features/rs6000/powerpc-860.c
index c259397..3f9d14a 100644
--- a/gdb/features/rs6000/powerpc-860.c
+++ b/gdb/features/rs6000/powerpc-860.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-860.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-860.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_860;
diff --git a/gdb/features/rs6000/powerpc-altivec32.c b/gdb/features/rs6000/powerpc-altivec32.c
index 668ab50..da94c52 100644
--- a/gdb/features/rs6000/powerpc-altivec32.c
+++ b/gdb/features/rs6000/powerpc-altivec32.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-altivec32.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-altivec32.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_altivec32;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_altivec32 (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common"));
 
diff --git a/gdb/features/rs6000/powerpc-altivec32l.c b/gdb/features/rs6000/powerpc-altivec32l.c
index 534f2b2..ba418b3 100644
--- a/gdb/features/rs6000/powerpc-altivec32l.c
+++ b/gdb/features/rs6000/powerpc-altivec32l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-altivec32l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-altivec32l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_altivec32l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_altivec32l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common"));
 
diff --git a/gdb/features/rs6000/powerpc-altivec64.c b/gdb/features/rs6000/powerpc-altivec64.c
index 1a03ff3..35d9034 100644
--- a/gdb/features/rs6000/powerpc-altivec64.c
+++ b/gdb/features/rs6000/powerpc-altivec64.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-altivec64.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-altivec64.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_altivec64;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_altivec64 (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64"));
 
diff --git a/gdb/features/rs6000/powerpc-altivec64l.c b/gdb/features/rs6000/powerpc-altivec64l.c
index 2cac92b..19b869b 100644
--- a/gdb/features/rs6000/powerpc-altivec64l.c
+++ b/gdb/features/rs6000/powerpc-altivec64l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-altivec64l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-altivec64l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_altivec64l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_altivec64l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64"));
 
diff --git a/gdb/features/rs6000/powerpc-cell32l.c b/gdb/features/rs6000/powerpc-cell32l.c
index 8a6fdc4..9f2805a 100644
--- a/gdb/features/rs6000/powerpc-cell32l.c
+++ b/gdb/features/rs6000/powerpc-cell32l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-cell32l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-cell32l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_cell32l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_cell32l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common"));
 
diff --git a/gdb/features/rs6000/powerpc-cell64l.c b/gdb/features/rs6000/powerpc-cell64l.c
index 4f8692e..b9ff7ee 100644
--- a/gdb/features/rs6000/powerpc-cell64l.c
+++ b/gdb/features/rs6000/powerpc-cell64l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-cell64l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-cell64l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_cell64l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_cell64l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64"));
 
diff --git a/gdb/features/rs6000/powerpc-e500.c b/gdb/features/rs6000/powerpc-e500.c
index db54f6a..3077ee6 100644
--- a/gdb/features/rs6000/powerpc-e500.c
+++ b/gdb/features/rs6000/powerpc-e500.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-e500.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-e500.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_e500;
diff --git a/gdb/features/rs6000/powerpc-e500l.c b/gdb/features/rs6000/powerpc-e500l.c
index 479578c..ee3c18a 100644
--- a/gdb/features/rs6000/powerpc-e500l.c
+++ b/gdb/features/rs6000/powerpc-e500l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-e500l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-e500l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_e500l;
diff --git a/gdb/features/rs6000/powerpc-isa205-32l.c b/gdb/features/rs6000/powerpc-isa205-32l.c
index 5d1006c..dbab65f 100644
--- a/gdb/features/rs6000/powerpc-isa205-32l.c
+++ b/gdb/features/rs6000/powerpc-isa205-32l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-isa205-32l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-isa205-32l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_isa205_32l;
diff --git a/gdb/features/rs6000/powerpc-isa205-64l.c b/gdb/features/rs6000/powerpc-isa205-64l.c
index c0a851d..45d74ad 100644
--- a/gdb/features/rs6000/powerpc-isa205-64l.c
+++ b/gdb/features/rs6000/powerpc-isa205-64l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-isa205-64l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-isa205-64l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_isa205_64l;
diff --git a/gdb/features/rs6000/powerpc-isa205-altivec32l.c b/gdb/features/rs6000/powerpc-isa205-altivec32l.c
index c8551da..6192a07 100644
--- a/gdb/features/rs6000/powerpc-isa205-altivec32l.c
+++ b/gdb/features/rs6000/powerpc-isa205-altivec32l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-isa205-altivec32l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-isa205-altivec32l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_isa205_altivec32l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_isa205_altivec32l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common"));
 
diff --git a/gdb/features/rs6000/powerpc-isa205-altivec64l.c b/gdb/features/rs6000/powerpc-isa205-altivec64l.c
index 37ef40c..3bd57f6 100644
--- a/gdb/features/rs6000/powerpc-isa205-altivec64l.c
+++ b/gdb/features/rs6000/powerpc-isa205-altivec64l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-isa205-altivec64l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-isa205-altivec64l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_isa205_altivec64l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_isa205_altivec64l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64"));
 
diff --git a/gdb/features/rs6000/powerpc-isa205-vsx32l.c b/gdb/features/rs6000/powerpc-isa205-vsx32l.c
index fdcbe96..e6ee7f6 100644
--- a/gdb/features/rs6000/powerpc-isa205-vsx32l.c
+++ b/gdb/features/rs6000/powerpc-isa205-vsx32l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-isa205-vsx32l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-isa205-vsx32l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_isa205_vsx32l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_isa205_vsx32l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common"));
 
diff --git a/gdb/features/rs6000/powerpc-isa205-vsx64l.c b/gdb/features/rs6000/powerpc-isa205-vsx64l.c
index 33dcb5a..d64b1bf 100644
--- a/gdb/features/rs6000/powerpc-isa205-vsx64l.c
+++ b/gdb/features/rs6000/powerpc-isa205-vsx64l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-isa205-vsx64l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-isa205-vsx64l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_isa205_vsx64l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_isa205_vsx64l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64"));
 
diff --git a/gdb/features/rs6000/powerpc-vsx32.c b/gdb/features/rs6000/powerpc-vsx32.c
index 9c7e371..dd34e7b 100644
--- a/gdb/features/rs6000/powerpc-vsx32.c
+++ b/gdb/features/rs6000/powerpc-vsx32.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-vsx32.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-vsx32.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_vsx32;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_vsx32 (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common"));
 
diff --git a/gdb/features/rs6000/powerpc-vsx32l.c b/gdb/features/rs6000/powerpc-vsx32l.c
index c3c4ccd..e6e635c 100644
--- a/gdb/features/rs6000/powerpc-vsx32l.c
+++ b/gdb/features/rs6000/powerpc-vsx32l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-vsx32l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-vsx32l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_vsx32l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_vsx32l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common"));
 
diff --git a/gdb/features/rs6000/powerpc-vsx64.c b/gdb/features/rs6000/powerpc-vsx64.c
index 25b843c..7215cc0 100644
--- a/gdb/features/rs6000/powerpc-vsx64.c
+++ b/gdb/features/rs6000/powerpc-vsx64.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-vsx64.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-vsx64.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_vsx64;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_vsx64 (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64"));
 
diff --git a/gdb/features/rs6000/powerpc-vsx64l.c b/gdb/features/rs6000/powerpc-vsx64l.c
index 37c2d35..8505f4f 100644
--- a/gdb/features/rs6000/powerpc-vsx64l.c
+++ b/gdb/features/rs6000/powerpc-vsx64l.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: powerpc-vsx64l.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: powerpc-vsx64l.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_powerpc_vsx64l;
@@ -9,7 +11,8 @@ initialize_tdesc_powerpc_vsx64l (void)
 {
   struct target_desc *result = allocate_target_description ();
   struct tdesc_feature *feature;
-  struct tdesc_type *field_type, *type;
+  struct tdesc_type *field_type;
+  struct tdesc_type *type;
 
   set_tdesc_architecture (result, bfd_scan_arch ("powerpc:common64"));
 
diff --git a/gdb/features/rs6000/rs6000.c b/gdb/features/rs6000/rs6000.c
index 9793059..8e8e1af 100644
--- a/gdb/features/rs6000/rs6000.c
+++ b/gdb/features/rs6000/rs6000.c
@@ -1,6 +1,8 @@
-/* THIS FILE IS GENERATED.  Original: rs6000.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: rs6000.xml */
 
 #include "defs.h"
+#include "osabi.h"
 #include "target-descriptions.h"
 
 struct target_desc *tdesc_rs6000;
diff --git a/gdb/features/s390-linux32.c b/gdb/features/s390-linux32.c
index 57ade3b..2fb7fc8 100644
--- a/gdb/features/s390-linux32.c
+++ b/gdb/features/s390-linux32.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390-linux32.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390-linux32.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/s390-linux32v1.c b/gdb/features/s390-linux32v1.c
index f1637cb..7ade83c 100644
--- a/gdb/features/s390-linux32v1.c
+++ b/gdb/features/s390-linux32v1.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390-linux32v1.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390-linux32v1.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/s390-linux32v2.c b/gdb/features/s390-linux32v2.c
index 75db548..935152e 100644
--- a/gdb/features/s390-linux32v2.c
+++ b/gdb/features/s390-linux32v2.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390-linux32v2.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390-linux32v2.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/s390-linux64.c b/gdb/features/s390-linux64.c
index bd6972e..b0a58bc 100644
--- a/gdb/features/s390-linux64.c
+++ b/gdb/features/s390-linux64.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390-linux64.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390-linux64.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/s390-linux64v1.c b/gdb/features/s390-linux64v1.c
index 4936a7f..1422e77 100644
--- a/gdb/features/s390-linux64v1.c
+++ b/gdb/features/s390-linux64v1.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390-linux64v1.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390-linux64v1.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/s390-linux64v2.c b/gdb/features/s390-linux64v2.c
index 955b635..ca8e976 100644
--- a/gdb/features/s390-linux64v2.c
+++ b/gdb/features/s390-linux64v2.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390-linux64v2.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390-linux64v2.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/s390x-linux64.c b/gdb/features/s390x-linux64.c
index 9cb8958..99f1fe3 100644
--- a/gdb/features/s390x-linux64.c
+++ b/gdb/features/s390x-linux64.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390x-linux64.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390x-linux64.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/s390x-linux64v1.c b/gdb/features/s390x-linux64v1.c
index c41ff76..a51af89 100644
--- a/gdb/features/s390x-linux64v1.c
+++ b/gdb/features/s390x-linux64v1.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390x-linux64v1.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390x-linux64v1.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/s390x-linux64v2.c b/gdb/features/s390x-linux64v2.c
index fb93d68..e16a199 100644
--- a/gdb/features/s390x-linux64v2.c
+++ b/gdb/features/s390x-linux64v2.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: s390x-linux64v2.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: s390x-linux64v2.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/tic6x-c62x-linux.c b/gdb/features/tic6x-c62x-linux.c
index 288309f..8b19255 100644
--- a/gdb/features/tic6x-c62x-linux.c
+++ b/gdb/features/tic6x-c62x-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: tic6x-c62x-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: tic6x-c62x-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/tic6x-c62x.c b/gdb/features/tic6x-c62x.c
index 0a2f958..7fa561f 100644
--- a/gdb/features/tic6x-c62x.c
+++ b/gdb/features/tic6x-c62x.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: tic6x-c62x.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: tic6x-c62x.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/tic6x-c64x-linux.c b/gdb/features/tic6x-c64x-linux.c
index 59e1ced..0d1d96f 100644
--- a/gdb/features/tic6x-c64x-linux.c
+++ b/gdb/features/tic6x-c64x-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: tic6x-c64x-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: tic6x-c64x-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/tic6x-c64x.c b/gdb/features/tic6x-c64x.c
index f0fcdce..c3ab9d3 100644
--- a/gdb/features/tic6x-c64x.c
+++ b/gdb/features/tic6x-c64x.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: tic6x-c64x.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: tic6x-c64x.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/tic6x-c64xp-linux.c b/gdb/features/tic6x-c64xp-linux.c
index 927f8da..1b93ca9 100644
--- a/gdb/features/tic6x-c64xp-linux.c
+++ b/gdb/features/tic6x-c64xp-linux.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: tic6x-c64xp-linux.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: tic6x-c64xp-linux.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/features/tic6x-c64xp.c b/gdb/features/tic6x-c64xp.c
index cd4de3a..62a0be6 100644
--- a/gdb/features/tic6x-c64xp.c
+++ b/gdb/features/tic6x-c64xp.c
@@ -1,4 +1,5 @@
-/* THIS FILE IS GENERATED.  Original: tic6x-c64xp.xml */
+/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*-
+  Original: tic6x-c64xp.xml */
 
 #include "defs.h"
 #include "osabi.h"
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index f3d81a1..d24ae05 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -1,4 +1,4 @@
-/* *INDENT-OFF* */ /* THIS FILE IS GENERATED */
+/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
 
 /* Dynamic architecture support for GDB, the GNU debugger.
 
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index a239aa4..b2757e3 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -1,4 +1,4 @@
-/* *INDENT-OFF* */ /* THIS FILE IS GENERATED */
+/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
 
 /* Dynamic architecture support for GDB, the GNU debugger.
 
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 06294ab..045c12e 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -1006,7 +1006,7 @@ compare_new gdbarch.log
 copyright ()
 {
 cat <<EOF
-/* *INDENT-OFF* */ /* THIS FILE IS GENERATED */
+/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
 
 /* Dynamic architecture support for GDB, the GNU debugger.
 
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 16aaa64..ffb5c3b 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -1575,8 +1575,9 @@ maint_print_c_tdesc_cmd (char *args, int from_tty)
   *outp = '\0';
 
   /* Standard boilerplate.  */
-  printf_unfiltered ("/* THIS FILE IS GENERATED.  Original: %s */\n\n",
-		     filename);
+  printf_unfiltered ("/* THIS FILE IS GENERATED.  "
+		     "-*- buffer-read-only: t -*-\n");
+  printf_unfiltered ("  Original: %s */\n\n", filename);
   printf_unfiltered ("#include \"defs.h\"\n");
   printf_unfiltered ("#include \"osabi.h\"\n");
   printf_unfiltered ("#include \"target-descriptions.h\"\n");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]