diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-22 12:23:53 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-22 12:23:53 -0500 |
commit | 344e9841d989cb96316d8d487e004212d4d3090a (patch) | |
tree | d8a7b89648a9463e2acbb0037740bf55149bc5a2 /gdb/value.c | |
parent | 30625020198359db7462a197380c242d91c07f14 (diff) | |
download | gdb-344e9841d989cb96316d8d487e004212d4d3090a.zip gdb-344e9841d989cb96316d8d487e004212d4d3090a.tar.gz gdb-344e9841d989cb96316d8d487e004212d4d3090a.tar.bz2 |
gdb: remove TYPE_OBJFILE macro
Change all users to use the type::objfile method instead.
gdb/ChangeLog:
* gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
type::objfile method instead.
Change-Id: I6b3f580913fb1fb0cf986b176dba8db68e1fabf9
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/value.c b/gdb/value.c index c84698d..6f4ee54 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2514,10 +2514,10 @@ void preserve_one_value (struct value *value, struct objfile *objfile, htab_t copied_types) { - if (TYPE_OBJFILE (value->type) == objfile) + if (value->type->objfile () == objfile) value->type = copy_type_recursive (objfile, value->type, copied_types); - if (TYPE_OBJFILE (value->enclosing_type) == objfile) + if (value->enclosing_type->objfile () == objfile) value->enclosing_type = copy_type_recursive (objfile, value->enclosing_type, copied_types); @@ -2532,7 +2532,7 @@ preserve_one_internalvar (struct internalvar *var, struct objfile *objfile, switch (var->kind) { case INTERNALVAR_INTEGER: - if (var->u.integer.type && TYPE_OBJFILE (var->u.integer.type) == objfile) + if (var->u.integer.type && var->u.integer.type->objfile () == objfile) var->u.integer.type = copy_type_recursive (objfile, var->u.integer.type, copied_types); break; |