This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] [gdb/DWARF] Introduce linked list for dynamic attributes
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Fri, 20 Mar 2015 23:40:25 -0400
- Subject: [binutils-gdb] [gdb/DWARF] Introduce linked list for dynamic attributes
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT d9823cbb391e015f79687f4d17d7f9a32d27b5eb ***
Author: Keven Boell <keven.boell@linux.intel.com>
Branch: master
Commit: d9823cbb391e015f79687f4d17d7f9a32d27b5eb
[gdb/DWARF] Introduce linked list for dynamic attributes
This patch introduces a linked list for dynamic attributes of a type.
This is a pre-work for the Fortran dynamic array support. The Fortran
dynamic array support will add more dynamic attributes to a type.
As only a few types will have such dynamic attributes set, a linked
list is more efficient in terms of memory consumption than adding
multiple attributes to main_type.
gdb/ChangeLog:
* gdbtypes.c (resolve_dynamic_type_internal): Adapt
data_location usage to linked list.
(resolve_dynamic_type_internal): Adapt data_location to
linked list.
(get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
(copy_type_recursive, copy_type): Add copy of linked list.
* gdbtypes.h (enum dynamic_prop_node_kind): New enum.
(struct dynamic_prop_list): New struct.
* dwarf2read.c (set_die_type): Set data_location data.