This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: packing/unpacking 4-octet longs
> For the most part, I'm leaving lengths as octet lengths and adjusting them to target
> lengths if necessary at the last possible instant. My remote server/stub will answer
> 1-octet requests with the LS octet of the character addressed, though this is not a
> recommended request, nor are 1-octet write requests.
I think doing this would be a bad move. GDB shouldn't lie about how the
target represents its data types.
Best example of this I can think of is with the MIPS. GDB tried to lie
and pretend that the MIPS didn't sign extended addresses.
enjoy,
Andrew