GDB: rename DYN_ATTR_DATA_LOCATION into DYN_PROP_DATA_LOCATION.
authorJoel Brobecker <brobecker@adacore.com>
Tue, 24 Mar 2015 18:03:21 +0000 (11:03 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Tue, 24 Mar 2015 18:24:43 +0000 (11:24 -0700)
The terminology we've been using is (dynamic) "property" rather than
"attribute", so this patch renames an enum to use the same terminology.

No behavior change.

gdb/ChangeLog:

        * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
        Renames DYN_ATTR_DATA_LOCATION.
        (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
        DYN_ATTR_DATA_LOCATION.
        * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
        instead of DYN_ATTR_DATA_LOCATION.

Tested on x86_64-linux.

gdb/ChangeLog
gdb/dwarf2read.c
gdb/gdbtypes.h

index c2a55209ea64e09d34f3deae3872fdfa26d50769..78ccc8a22c912ebbb94722255229160bd7746d99 100644 (file)
@@ -1,3 +1,12 @@
+2015-03-24  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
+       Renames DYN_ATTR_DATA_LOCATION.
+       (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
+       DYN_ATTR_DATA_LOCATION.
+       * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
+       instead of DYN_ATTR_DATA_LOCATION.
+
 2015-03-24  Pedro Alves  <palves@redhat.com>
 
        * breakpoint.c (until_break_command): Adjust call to proceed.
index 4946b4808eeadc1d60aa0b846e8194148de4297e..96c5a33f234316068472f62372e48a644d0a9635 100644 (file)
@@ -22102,7 +22102,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
   /* Read DW_AT_data_location and set in type.  */
   attr = dwarf2_attr (die, DW_AT_data_location, cu);
   if (attr_to_dynamic_prop (attr, die, cu, &prop))
-    add_dyn_prop (DYN_ATTR_DATA_LOCATION, prop, type, objfile);
+    add_dyn_prop (DYN_PROP_DATA_LOCATION, prop, type, objfile);
 
   if (dwarf2_per_objfile->die_type_hash == NULL)
     {
index 79d72dfeef671123a112cacdc7f1519f6bb4f273..15d6cd5b61a0139575cbcc46f90be36d6ae81b5c 100644 (file)
@@ -439,7 +439,7 @@ enum dynamic_prop_node_kind
 {
   /* A property providing a type's data location.
      Evaluating this field yields to the location of an object's data.  */
-  DYN_ATTR_DATA_LOCATION,
+  DYN_PROP_DATA_LOCATION,
 };
 
 /* * List for dynamic type attributes.  */
@@ -1258,7 +1258,7 @@ extern void allocate_gnat_aux_type (struct type *);
 
 /* Property accessors for the type data location.  */
 #define TYPE_DATA_LOCATION(thistype) \
-  get_dyn_prop (DYN_ATTR_DATA_LOCATION, thistype)
+  get_dyn_prop (DYN_PROP_DATA_LOCATION, thistype)
 #define TYPE_DATA_LOCATION_BATON(thistype) \
   TYPE_DATA_LOCATION (thistype)->data.baton
 #define TYPE_DATA_LOCATION_ADDR(thistype) \
This page took 0.06776 seconds and 4 git commands to generate.