共1条
1/1 1 跳转至页
gdbserver调试出现No symbol table问题

我使用的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错误。郁闷啊,一直未解决。
请斑竹和各位大侠不吝赐教,非常着急!
关键词: gdbserver 调试 出现 symbol ta
共1条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 |