This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 4/5] Make sect_offset and cu_offset strong typedefs instead of structs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]