Skip to contentSkip to conversation

Debuging Problem in PPC440GP

DISCUSSION Aman 2 participants 2 messages Nov 22, 2002 – Nov 25, 2002

lore
Share & tools
lore

Aman

author
#0 lore raw

Hi All

I wanted to debug the application in ppc440gp. To debug I am using gdbserver and ddd. The application which I have written is hello world program. In the target the command is

[email protected]:~# gdbserver 192.168.13.242:4000 hello
Process hello created; pid = 107

In the host the command is
ddd --debugger ppc_405-gdb --gdb hello and then in the GUI the following command is given

target remote 192.168.13.246:4000 which in turn creates the following line in the target
Remote debugging using 192.168.13.242:4000

In the above situation , if I say "cont" , the program executes normally. However if I say "run" , it gives the following error

(gdb) run
Don't know how to run. Try "help target".

and in the target it says

"Killing inferior".

Can anybody help me in solving this issue.

Thanking you in advance
Regards
Aman

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

#1 lore raw
Quoted 21 lines · Aman

Hi All

I wanted to debug the application in ppc440gp. To debug I am using gdbserver and ddd. The application which I have written is hello world program. In the target the command is

[email protected]:~# gdbserver 192.168.13.242:4000 hello
Process hello created; pid = 107

In the host the command is
ddd --debugger ppc_405-gdb --gdb hello and then in the GUI the following command is given

target remote 192.168.13.246:4000 which in turn creates the following line in the target
Remote debugging using 192.168.13.242:4000

In the above situation , if I say "cont" , the program executes normally. However if I say "run" , it gives the following error

Quoted 8 lines

(gdb) run
Don't know how to run. Try "help target".

and in the target it says

"Killing inferior".

Can anybody help me in solving this issue.

Solve what? from the output it's clear that gdbserver already created the process and since it's already running you can just use continue.

Also the remote protocol is very low level it dose not know how to start a program.

--
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/