This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How gdb support 32 & 64 bit value ?
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: #-sadiq shaikh-# <saadiqshaikh at yahoo dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 06 Jun 2003 17:18:41 -0400
- Subject: Re: How gdb support 32 & 64 bit value ?
- References: <20030606133248.39558.qmail@web41807.mail.yahoo.com>
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