All of lore.kernel.org
 help / color / mirror / Atom feed
* gdb configuration
@ 2008-11-18  9:56 Chris Rhodin
  2008-11-18 16:56 ` David Daney
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Rhodin @ 2008-11-18  9:56 UTC (permalink / raw)
  To: linux-mips

Hi,

I'm trying to debug 32-bit linux over a serial port with gdb.  I'm able 
to connect to the target and everything looks good until I examine the 
registers.  What's there is obviously wrong.  I've examined the stack 
and found the register data structure.  Each register in this structure 
is 32 bits.  When I compare the structure to the registers that gdb 
displays I can see that gdb is expecting each register to occupy 64 
bits.  I've tried setting "abi", "saved-gpreg-size", and 
"stack-arg-size" to 32 bits without success.  Can someone point out my 
obvious mistake?

Thanks,


Chris Rhodin

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

* Re: gdb configuration
  2008-11-18  9:56 gdb configuration Chris Rhodin
@ 2008-11-18 16:56 ` David Daney
  2008-11-19  9:34   ` Chris Rhodin
  0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2008-11-18 16:56 UTC (permalink / raw)
  To: Chris Rhodin; +Cc: linux-mips

Chris Rhodin wrote:
> Hi,
> 
> I'm trying to debug 32-bit linux over a serial port with gdb.  I'm able 
> to connect to the target and everything looks good until I examine the 
> registers.  What's there is obviously wrong.  I've examined the stack 
> and found the register data structure.  Each register in this structure 
> is 32 bits.  When I compare the structure to the registers that gdb 
> displays I can see that gdb is expecting each register to occupy 64 
> bits.  I've tried setting "abi", "saved-gpreg-size", and 
> "stack-arg-size" to 32 bits without success.  Can someone point out my 
> obvious mistake?
> 

Please report the exact versions of all the tools you are using.  If you 
are not using gdb 6.8 upgrade to that version and see what happens.

If it still fails, try asking on gdb@sourceware.org

David Daney

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

* Re: gdb configuration
  2008-11-18 16:56 ` David Daney
@ 2008-11-19  9:34   ` Chris Rhodin
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Rhodin @ 2008-11-19  9:34 UTC (permalink / raw)
  To: David Daney; +Cc: linux-mips

I was using a gdb I built from the Debian sources, it's version 6.4.90.  
I just built 6.8 from GNU and everything seems to work fine now.

Thanks,


Chris Rhodin

David Daney wrote:

> Chris Rhodin wrote:
>
>> Hi,
>>
>> I'm trying to debug 32-bit linux over a serial port with gdb.  I'm 
>> able to connect to the target and everything looks good until I 
>> examine the registers.  What's there is obviously wrong.  I've 
>> examined the stack and found the register data structure.  Each 
>> register in this structure is 32 bits.  When I compare the structure 
>> to the registers that gdb displays I can see that gdb is expecting 
>> each register to occupy 64 bits.  I've tried setting "abi", 
>> "saved-gpreg-size", and "stack-arg-size" to 32 bits without success.  
>> Can someone point out my obvious mistake?
>>
>
> Please report the exact versions of all the tools you are using.  If 
> you are not using gdb 6.8 upgrade to that version and see what happens.
>
> If it still fails, try asking on gdb@sourceware.org
>
> David Daney
>
> .
>

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

end of thread, other threads:[~2008-11-19  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18  9:56 gdb configuration Chris Rhodin
2008-11-18 16:56 ` David Daney
2008-11-19  9:34   ` Chris Rhodin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.