This is the mail archive of the gdb@sources.redhat.com 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: How gdb support 32 & 64 bit value ?


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



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