aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-05-07 11:08:54 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-05-07 11:32:33 -0400
commit7aa913136675f4b81cd3a548e44bbdab6185abed (patch)
treed047a7bd99cb3ebf0cf0a89f4062aa4c96fc24f5 /gdb/value.c
parent5c54719c22b14f526e72be39a793657ac73d36c5 (diff)
downloadgdb-7aa913136675f4b81cd3a548e44bbdab6185abed.zip
gdb-7aa913136675f4b81cd3a548e44bbdab6185abed.tar.gz
gdb-7aa913136675f4b81cd3a548e44bbdab6185abed.tar.bz2
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.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 7ea39af..aafbf0f 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -2291,7 +2291,7 @@ set_internalvar (struct internalvar *var, struct value *val)
when accessing the value.
If we keep it, we would still refer to the origin value.
Remove the location property in case it exist. */
- remove_dyn_prop (DYN_PROP_DATA_LOCATION, value_type (new_data.value));
+ value_type (new_data.value)->remove_dyn_prop (DYN_PROP_DATA_LOCATION);
break;
}