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]

[01/11] Fortran dynamic arrays support: Define DW_AT_*_stride


Hi,

the include/ part will be submitted for binutils.

Backward compatible symbols were not left there.  There are currently not used
anywhere and they are already deprecated by DWARF3.


Regards,
Jan
include/
2007-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* elf/dwarf2.h (DW_AT_stride_size): Renamed to ...
	(DW_AT_bit_stride): ... its DWARF3 equivalent.
	(DW_AT_stride): Renamed to ...
	(DW_AT_byte_stride): ... its DWARF3 equivalent.

gdb/
2007-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* dwarf2read.c (dwarf_attr_name): Renamed `DW_AT_stride_size' to its
	DWARF3 equivalent `DW_AT_bit_stride'.
	Renamed `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.

Index: sources/include/elf/dwarf2.h
===================================================================
--- sources.orig/include/elf/dwarf2.h	2007-11-16 00:40:59.000000000 +0100
+++ sources/include/elf/dwarf2.h	2007-11-16 00:41:07.000000000 +0100
@@ -275,7 +275,7 @@ enum dwarf_attribute
     DW_AT_prototyped = 0x27,
     DW_AT_return_addr = 0x2a,
     DW_AT_start_scope = 0x2c,
-    DW_AT_stride_size = 0x2e,
+    DW_AT_bit_stride = 0x2e,
     DW_AT_upper_bound = 0x2f,
     DW_AT_abstract_origin = 0x31,
     DW_AT_accessibility = 0x32,
@@ -310,7 +310,7 @@ enum dwarf_attribute
     DW_AT_allocated     = 0x4e,
     DW_AT_associated    = 0x4f,
     DW_AT_data_location = 0x50,
-    DW_AT_stride        = 0x51,
+    DW_AT_byte_stride   = 0x51,
     DW_AT_entry_pc      = 0x52,
     DW_AT_use_UTF8      = 0x53,
     DW_AT_extension     = 0x54,
Index: sources/gdb/dwarf2read.c
===================================================================
--- sources.orig/gdb/dwarf2read.c	2007-11-16 00:40:59.000000000 +0100
+++ sources/gdb/dwarf2read.c	2007-11-16 00:41:07.000000000 +0100
@@ -8129,8 +8129,8 @@ dwarf_attr_name (unsigned attr)
       return "DW_AT_return_addr";
     case DW_AT_start_scope:
       return "DW_AT_start_scope";
-    case DW_AT_stride_size:
-      return "DW_AT_stride_size";
+    case DW_AT_bit_stride:
+      return "DW_AT_bit_stride";
     case DW_AT_upper_bound:
       return "DW_AT_upper_bound";
     case DW_AT_abstract_origin:
@@ -8198,8 +8198,8 @@ dwarf_attr_name (unsigned attr)
       return "DW_AT_associated";
     case DW_AT_data_location:
       return "DW_AT_data_location";
-    case DW_AT_stride:
-      return "DW_AT_stride";
+    case DW_AT_byte_stride:
+      return "DW_AT_byte_stride";
     case DW_AT_entry_pc:
       return "DW_AT_entry_pc";
     case DW_AT_use_UTF8:

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