Skip to contentSkip to conversation

cross debug with gdb/gdbserver on 405GP

DISCUSSION sjk 3 participants 3 messages Sep 20, 2002

lore
Share & tools
lore

sjk

author
#0 lore raw

Hi,

I am porting Linux on CSB272 405gp board.The Linux kernel works. But I can't debug applications with gdb and gdbserver. The problem is described as following:

I want to cross debug applications by gdbserver and gdb.But only one breakpoint can break. Any excute comand including stepi make the application run over and exit. The application runs correctlly. Why can't I debug the program step by step?

ppc_405gdb version 5.2.
debug information:
on host:
#ppc_405 -g -ggdb -o hello hello.c
#ddd --debugger ppc_405-gdb --gdb hello
(gdb) target remote target:1000
0x30013a00 in ?? ()
(gdb) break hello.c:4
Breakpoint 1 at 0x100004f8: file hello.c, line 4.
(gdb) cont
Breakpoint 1, main () at hello.c:4
(gdb) step
Program exited with code 037.
(gdb)

on target:
#gdbserver host:1000 hello
rocess hello created; pid = 97
Remote debugging using 192.9.200.69:1000
Hello World
Child exited with retcode = c
Child exited with status 253
GDBserver exiting

please give some suggestions!
thanks

Jikun Sun
[email protected]

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

#1 lore raw
Quoted 5 lines · sjk

Hi,

I am porting Linux on CSB272 405gp board.The Linux kernel works. But I can't debug applications with gdb and gdbserver.

You weren't kind enough to tell us what kernel you are using. :) ASSuming that you are using a recent 2_4_devel kernel, I explained the broken 4xx debug situation in the thread, "kgdb with 2.4.20pre7 kernel on 405 target", three days ago. Check the archives.

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
Quoted 8 lines · Matt Porter
Quoted 5 lines · sjk

Hi,

I am porting Linux on CSB272 405gp board.The Linux kernel works. But I can't debug applications with gdb and gdbserver.

Quoted 8 lines

You weren't kind enough to tell us what kernel you are using. :) ASSuming that you are using a recent 2_4_devel kernel, I explained the broken 4xx debug situation in the thread, "kgdb with 2.4.20pre7 kernel on 405 target", three days ago. Check the archives.

Regards,
--
Matt Porter

What's the ETA on the fix? It's been this way since start of sep.

--
Kenneth Johansson

Ericsson AB                       Tel: +46 8 404 71 83
Borgafjordsgatan 9                Fax: +46 8 404 72 72
164 80 Stockholm                  [email protected]

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