diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-05-07 11:32:25 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-05-07 11:32:25 -0400 |
commit | 24e99c6c3c78e38a9919c9f8e8b831713f8303a3 (patch) | |
tree | 60b31873f58a3656645f3005f06be2a008dc02c4 /gdb/rust-lang.c | |
parent | d11a9fabab657e592df9167535bc46804937cf18 (diff) | |
download | gdb-24e99c6c3c78e38a9919c9f8e8b831713f8303a3.zip gdb-24e99c6c3c78e38a9919c9f8e8b831713f8303a3.tar.gz gdb-24e99c6c3c78e38a9919c9f8e8b831713f8303a3.tar.bz2 |
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.
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 20661e4..f2fb011 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -708,8 +708,7 @@ rust_print_struct_def (struct type *type, const char *varstring, if (is_enum) { fputs_filtered ("enum ", stream); - struct dynamic_prop *prop = get_dyn_prop (DYN_PROP_VARIANT_PARTS, - type); + dynamic_prop *prop = type->dyn_prop (DYN_PROP_VARIANT_PARTS); if (prop != nullptr && prop->kind == PROP_TYPE) type = prop->data.original_type; } |