Skip to contentSkip to conversation

ppc_405-gdb + Segmentation fault (core dumped)

DISCUSSION sanjay k k 3 participants 3 messages Sep 18, 2002

lore
Share & tools
lore

sanjay k k

author
#0 lore raw

Hi ,
I was trying to debug the kernel with the help of BDI, but couldn't do so as gdb is dying itself.
I am using monta vista cross-compiled gdb. Here what i do to debug the kernel.

1. boot the board (I am using ppcboot)[Board is connected with BDI]
2. After that I start the ppc_405-gdb on host.
3. Enter C to continue.
4. Then I press CTRL-C to stop the gdb , then it stops the kernel.
5. Now I try to add the symbol file (vmlinux).
When i do the 5th step , my gdb dies , it says :
Reading Symbols from vmlinux.... Segmentation fault (core dumped).

Thankx
Sanjay

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 2 lines · sanjay k k

When i do the 5th step , my gdb dies , it says :
Reading Symbols from vmlinux.... Segmentation fault (core

You need to upgrade to a newer version of gdb...5.1 will work.

Regards,
--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to sanjay k k
Quoted 5 lines · In message <[email protected]> you wrote:

I was trying to debug the kernel with the help of BDI, but couldn't do so as gdb is dying itself.
I am using monta vista cross-compiled gdb. Here what i do to debug the kernel.

You need a newer version of GDB. The one included in our ELDK will work. See http://www.denx.de/re/ELDK.html

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] "Life is a garment we continuously alter, but which never seems to
fit." - David McCord

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/