Re: [PATCH 5/9] Add support for printing value of DWARF-based fixed-point type objects

Simon Marchi
2020-11-16T00:13:12Z

On 2020-11-15 1:33 a.m., Joel Brobecker wrote:
> In pratice, this wouldn't work. The main reason-d'etre for this function
> is that fixed point types can be both a TYPE_CODE_FIXED_POINT as well
> as a TYPE_CODE_RANGE of a TYPE_CODE_FIXED_POINT. What the function
> above does is first call fixed_point_type_base_type in order to get
> to the type which actually has the fixed_point_info, and then from
> there accesses the scaling factor.
>
> What we can do is make that a method of struct type instead...
> This is what the attached patch does.

Ahh, I see. Well, I think that's fine as-is.

Simon