[PATCH] Fix Ada value printing on PPC64

Tom Tromey tromey@adacore.com
Mon May 11 20:57:02 GMT 2020


>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

Tom> The val_print removal patches introduced an Ada regression on PPC64
Tom> (probably any big-endian system).

Tom> The issue comes because value_field does not understand that Ada
Tom> wrapper fields can be bitfields that wrap a non-scalar type.  In this
Tom> case the value is already left-justified, so the justification done
Tom> there does the wrong thing.

Tom> Perhaps it would be good, eventually, to change value_field to
Tom> understand this case.  In the meantime this implements an Ada-specific
Tom> solution.

I'm checking this in.

Tom


More information about the Gdb-patches mailing list