Skip to contentSkip to conversation

O2 KGDB problem

DISCUSSION Ricardo Mendoza 2 participants 2 messages Oct 10, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

Been messing around with the O2 and KGDB and well, theres a problem that I don't quite know how to tackle, when building a 64-bit kernel with mips64 target toolchain and with CONFIG_BUILD_ELF64 and then trying to start remote gdb with that image I get a Segfault from gdb. What do you think is the cause of this?

I guess its just file format mixup confusing gdb? any pointer from a gdb guru
towards making this work?

Ricardo

#1 lore raw
Quoted 9 lines · Ricardo Mendoza

Been messing around with the O2 and KGDB and well, theres a problem that I don't quite know how to tackle, when building a 64-bit kernel with mips64 target toolchain and with CONFIG_BUILD_ELF64 and then trying to start remote gdb with that image I get a Segfault from gdb. What do you think is the cause of this?

I guess its just file format mixup confusing gdb? any pointer from a gdb guru
towards making this work?

I believe a CVS snapshot of GDB will "work" but refuse to show you line numbers, and if you use a CVS snapshot of gas too then things will work OK. gas was doing something horribly wrong to the .debug_line sections it generated.

Signature · 2 lines
Daniel Jacobowitz
CodeSourcery