[RFA 5/6] Remove objfile argument from add_dyn_prop

Yao Qi qiyaoltc@gmail.com
Wed Jan 10 13:01:00 GMT 2018


Tom Tromey <tom@tromey.com> writes:

> @@ -25116,7 +25116,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
>    if (attr_form_is_block (attr))
>      {
>        if (attr_to_dynamic_prop (attr, die, cu, &prop))
> -        add_dyn_prop (DYN_PROP_ALLOCATED, prop, type, objfile);
> +        add_dyn_prop (DYN_PROP_ALLOCATED, prop, type);
>      }

Before the patch, the objfile is
cu->per_cu->dwarf2_per_objfile->objfile, but after the patch, the
objfile is TYPE_OBJFILE (type), are they equivalent?

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list