gdb: make get_dyn_prop a method of struct type
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 7 May 2020 15:32:25 +0000 (11:32 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 7 May 2020 15:32:25 +0000 (11:32 -0400)
commit24e99c6c3c78e38a9919c9f8e8b831713f8303a3
tree60b31873f58a3656645f3005f06be2a008dc02c4
parentd11a9fabab657e592df9167535bc46804937cf18
gdb: make get_dyn_prop a method of struct type

Move get_dyn_prop, currently a free function, to be a method on struct
type.

gdb/ChangeLog:

* gdbtypes.h (struct type) <get_dyn_prop>: New method.
(get_dyn_prop): Remove.  Update all users to use
type::dyn_prop.
* gdbtypes.c (get_dyn_prop): Rename to...
(type::dyn_prop): ... this.
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-typeprint.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/rust-lang.c