gdb: make remove_dyn_prop a method of struct type
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 7 May 2020 15:08:54 +0000 (11:08 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 7 May 2020 15:32:33 +0000 (11:32 -0400)
commit7aa913136675f4b81cd3a548e44bbdab6185abed
treed047a7bd99cb3ebf0cf0a89f4062aa4c96fc24f5
parent5c54719c22b14f526e72be39a793657ac73d36c5
gdb: make remove_dyn_prop a method of struct type

Move remove_dyn_prop, currently a free function, to be a method of
struct type.

gdb/ChangeLog:

* gdbtypes.h (struct type) <remove_dyn_prop>: New method.
(remove_dyn_prop): Remove.  Update all users to use
type::remove_dyn_prop.
* gdbtypes.c (remove_dyn_prop): Rename to...
(type::remove_dyn_prop): ... this.
gdb/ChangeLog
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/value.c