LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2117|回复: 1

gdbserver调试出现No symbol table问题

[复制链接]
发表于 2005-6-25 09:49:29 | 显示全部楼层 |阅读模式
我使用的target板子是s3c2410(arm9),host PC是FC1.
下载了最新的gdb-6.3.tar.gz之后,解压进入gdb/gdbserver,./configure --target=arm-linux --host=arm-linux, 并修改Makefile 的CC为arm-linux-gcc,然后make,生成gdbserver可执行文件。
把gdbserver和所需lib库拷入root文件系统,并制作root.cramfs烧入flash中。
有一个简单的程序x.c,在host PC上arm-linux-gcc x.c -g生成文件a.out,拷入target中。然后进行下面的调试。可是出现问题,但不知道怎么解决。

在target板子上执行下面的操作:
# ./gdbserver 172.16.0.1:5000 a.out
Process a.out created; pid = 34
Listening on port 5000
Remote debugging from host 172.16.0.1
可以看出gdbserver应该是运行正常的。

在host PC上执行下面的操作:
[root@localhost root]# gdb a.out
GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
Copyright 2003 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 "i386-redhat-linux-gnu".
(gdb) target remote 172.16.0.100:5000
172.16.0.100:5000: 拒绝连接.
(gdb) target remote 172.16.0.100:5000
Remote debugging using 172.16.0.100:5000
0x00000000 in ?? ()
(gdb) b main
No symbol table is loaded.  Use the "file" command.
(gdb) li
No symbol table is loaded.  Use the "file" command.
(gdb)
可是,从上面可以出现No symbol table is loaded错误。郁闷啊,一直未解决。

请斑竹和各位大侠不吝赐教,非常着急!
发表于 2005-10-8 15:42:18 | 显示全部楼层
我也出现了这样类似的问题,希望有高手回答阿!!!!!!!!!!!!!!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表