]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gdbtypes.c
gdb: remove TYPE_DYN_PROP_LIST macro
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 7 May 2020 15:18:42 +0000 (11:18 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 7 May 2020 15:32:38 +0000 (11:32 -0400)
commit98d48915d987c577c34e5516040ab04c0dab6baa
tree863422f141ab39492303a7dac33aa1236e4fefbe
parent7aa913136675f4b81cd3a548e44bbdab6185abed
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.
gdb/ChangeLog
gdb/gdbtypes.c
gdb/gdbtypes.h