Skip to contentSkip to conversation

gdb configuration

DISCUSSION Chris Rhodin 2 participants 3 messages Nov 18, 2008 – Nov 19, 2008 MIPS

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Chris Rhodin

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 [email protected]

David Daney

#2 lore raw

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

Quoted 15 lines · David Daney
Quoted 4 lines · Chris Rhodin

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 [email protected]

David Daney

.