Skip to contentSkip to conversation

asm-mips/ptrace.h pt_regs vs gdb

DISCUSSION Russell Berkoff 1 participant 1 message Mar 18, 2004 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

It looks like gdb-6.0 (see gdb/mips-linux-tdep.c) uses hardcoded offsets to decipher the register frame section of generated core files.

Unfortunately, someone decided to rearrange the registers in asm-mips/ptrace.h struct pt_regs somewhere between linux-mips 2.4.5 and 2.4.23, so now gdb-6.0 (at least out-of-the-can version) displays incorrect mips register state.

Can someone address this.

Thanks.

Regards,
Russell Berkoff
Pioneer Electronics.