mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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:
@ -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) \
|
||||
|
Reference in New Issue
Block a user