gdb: remove TYPE_DYN_PROP_LIST macro
Remove this macro, which abstracts how to obtain the dyn_prop_list of a given type. We could replace it with a method on `struct type`, but I don't think it's needed, as the only code that accesses the dynamic prop list directly is internal gdbtypes.c code (that can be seen as code internal to `struct type`). So it can just refer to the field directly. gdb/ChangeLog: * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users access thistype->main_type->dyn_prop_list directly.
This commit is contained in:
parent
7aa9131366
commit
98d48915d9
3 changed files with 16 additions and 13 deletions
|
@ -1463,8 +1463,6 @@ extern bool set_type_align (struct type *, ULONGEST);
|
|||
((thistype)->dyn_prop (DYN_PROP_ASSOCIATED))
|
||||
|
||||
/* Attribute accessors for dynamic properties. */
|
||||
#define TYPE_DYN_PROP_LIST(thistype) \
|
||||
TYPE_MAIN_TYPE(thistype)->dyn_prop_list
|
||||
#define TYPE_DYN_PROP_BATON(dynprop) \
|
||||
dynprop->data.baton
|
||||
#define TYPE_DYN_PROP_ADDR(dynprop) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue