Re: [RFA] Add TYPE_CODE_FIXED_POINT handling in print_type_scalar

Joel Brobecker
2020-11-24T03:04:34Z

> > gdb/ChangeLog:
> >
> > * typeprint.c (print_type_scalar): Add handling of
> > TYPE_CODE_FIXED_POINT.
> >
> > gdb/testsuite/ChangeLog:
> >
> > * gdb.dwarf2/dw2-fixed-point.exp: Fix the expected output of
> > the "ptype pck__fp1_range_var" test for the module-2 and pascal
> > languages. Remove the associated setup_xfail.
> >
> > The ptype output for range types in modula-2 and pascal is a little
> > odd (the type info is repeated twice around the ".." operator), but
> > I guess that's how they present range types in those languages.
>
> Yeah, it seems like it. Thanks for doing this, the change to handle
> fixed point in the generic print_type_scalar function looks good to me.

Thank you Simon. Patch pushed to master.

--
Joel