How gdb support 32 & 64 bit value ?
Andrew Cagney
ac131313@redhat.com
Fri Jun 6 21:18:00 GMT 2003
> Hi,
>
> Can anybody tell me that where exactly in the code(gdb-5.3),
> gdb is converting/interpreting 32 bit value into 64 bit value.
> Actaully in my case(target MIPS 32 bit).
> gdbserver is sending client 32 bit values but at the client
> end he is treating/holding in 64 bit value.Moreover treating
> is as signed like 0xffffffff80f60050 instead of 0x0000000080f60050
FYI, MIPS has signed addresses, so any 32 bit value converted to 64 bits
must be sign extended. Hence the value 0xffffffff80f60050 isn't unexpected.
You can force GDB to think it is 32 bit by either building a 32 bit GDB
or forcing the architecture to 32 bits (set architecture mips).
However, that may not work with your remote target.
Andrew
More information about the Gdb
mailing list