bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdbserver with gdb debugging problem ?


From: Jinoh Kim
Subject: gdbserver with gdb debugging problem ?
Date: 5 Sep 2001 22:47:20 -0700

I'm developing a network program on IBM 405GP target board with
HardHat Linux.
I'm looking for a good debugging method at this environment.
So, I'm going to use 'gdbserver' on the target and 'gdb' on linux
host.
But, I can't debug that program because of following symptoms.

405GP target board name : target405gp
a program to be debugging : test (just for testing, so it has 12 lines
source code)

On Target
---------
405gpsh# gdbserver host:2345 test
Process test created, pid = 33
Killing inferior

On Host
-------
[diablo]$ ls
Desktop test* test.c

[diablo]$ ppc_4xx-gdb
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "powerpc-hardhat-linux".
(gdb) target remote target405gp:2345
Remote debugging using target405gp:2345
0x30010c78 in ?? ()
(gdb) symbol-file test
Reading symbols from test...done.
(gdb) b 8
Breakpoint 1 at 0x1000044c: file test.c, line 8.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program no restarted.
(gdb) n
Cannot find bounds of current function
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) quit

Why does the message(The program being debugged...) was printed when I
enter 'run' command ?
And, Does touching the 'y' is correct at that situation ?

Thanks for your reading..



reply via email to

[Prev in Thread] Current Thread [Next in Thread]