public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* How gdb support 32 & 64 bit value ?
@ 2003-06-06 13:32 #-sadiq shaikh-#
  2003-06-06 21:18 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: #-sadiq shaikh-# @ 2003-06-06 13:32 UTC (permalink / raw)
  To: gdb

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

Thanks,
sadiq.shaikh

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How gdb support 32 & 64 bit value ?
  2003-06-06 13:32 How gdb support 32 & 64 bit value ? #-sadiq shaikh-#
@ 2003-06-06 21:18 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2003-06-06 21:18 UTC (permalink / raw)
  To: #-sadiq shaikh-#; +Cc: gdb

> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-06 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-06 13:32 How gdb support 32 & 64 bit value ? #-sadiq shaikh-#
2003-06-06 21:18 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).