packing/unpacking 4-octet longs

Andrew Cagney ac131313@cygnus.com
Wed Dec 5 10:49:00 GMT 2001


> 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




More information about the Gdb mailing list