[PATCH 4/5] Make sect_offset and cu_offset strong typedefs instead of structs
Pedro Alves
palves@redhat.com
Wed Apr 5 15:13:00 GMT 2017
On 03/29/2017 04:46 PM, Simon Marchi wrote:
> A while ago (in the pre C++ era), I asked you if we could make some
> integer types that couldn't be assigned to each other, to represent
> 8-bit bytes and target bytes. That would help avoid mixing incompatible
> lengths or offsets for targets that have 16 or 32 bit bytes, forcing us
> to do the appropriate conversion. There was no way to do it in C. Do
> you think offset-type could be used for that now?
Indeed, that might work.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list