|
最近一直在建嵌入式交叉开发环境(在linux(fedora4)与ARM(S3C44B0)之间的连接),可是GDB(gdbserver/gdb)调试一直弄不好,有哪位好心人可以帮帮我,不胜感激!我的情况时:
client:
/mnt/hu> gdbserver :2000 hello &
[30]
/mnt/hu> Process hello created; pid = 31
server:
[root@localhost arm]# arm-elf-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 "--host=i686-pc-linux-gnu --target=arm-elf".
(gdb) file hello.gdb
Reading symbols from hello.gdb...done.
(gdb) target remote 192.168.253.2:2000
Remote debugging using 192.168.253.2:2000
0xce30050 in _start ()
client:
/mnt/hu> Process hello created; pid = 31
Remote debugging from host 192.168.253.8
code at 0xce30040 - 0xce35d20, data at 0xce35d24
server:
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /root/arm/hello.gdb
You can't do that without a process to debug.
(gdb)
client:
/mnt/hu> Process hello created; pid = 31
Remote debugging from host 192.168.253.8
code at 0xce30040 - 0xce35d20, data at 0xce35d24
Killing inferior
sh 16: Child 30 died
为什么输入run命令是会出现:You can't do that without a process to debug. |
|