2015-03-24 Joel Brobecker <brobecker@adacore.com>
+ * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
+ pointer indirection.
+ * gdbtypes.c (get_dyn_prop): Adjust, following change above.
+ (add_dyn_prop, copy_dynamic_prop_list): Likewise.
+
+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
while (node != NULL)
{
if (node->prop_kind == prop_kind)
- return node->prop;
+ return &node->prop;
node = node->next;
}
return NULL;
temp = obstack_alloc (&objfile->objfile_obstack,
sizeof (struct dynamic_prop_list));
temp->prop_kind = prop_kind;
- temp->prop = obstack_copy (&objfile->objfile_obstack, &prop, sizeof (prop));
+ temp->prop = prop;
temp->next = TYPE_DYN_PROP_LIST (type);
TYPE_DYN_PROP_LIST (type) = temp;
node_copy = obstack_copy (objfile_obstack, *node_ptr,
sizeof (struct dynamic_prop_list));
- node_copy->prop = obstack_copy (objfile_obstack, (*node_ptr)->prop,
- sizeof (struct dynamic_prop));
+ node_copy->prop = (*node_ptr)->prop;
*node_ptr = node_copy;
node_ptr = &node_copy->next;
enum dynamic_prop_node_kind prop_kind;
/* The dynamic property itself. */
- struct dynamic_prop *prop;
+ struct dynamic_prop prop;
/* A pointer to the next dynamic property. */
struct dynamic_prop_list *next;