共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 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 【S32DS】S32K3 RTD7.0.1 HSE 组件配置报错问题解决被打赏¥27元 | |
| 【S32K3XX】MCME 启动 CORE1被打赏¥23元 | |
| AG32VH407下温度大气压传感器及其检测被打赏¥20元 | |
| AG32VH407下光照强度传感器BH1750及其检测被打赏¥22元 | |
| AT32VH407下使用温湿度传感器DHT22进行检测被打赏¥20元 | |
| DIY一个婴儿澡盆温度计被打赏¥34元 | |
| 【FreeRtos】FreeRtos+MPU region 配置规则被打赏¥23元 | |
| 【分享开发笔记,赚取电动螺丝刀】三分钟快速上手驱动墨水屏(ArduinoIDE)被打赏¥28元 | |
| 【S32K3XX】LIN 通讯模块使用被打赏¥31元 | |
| 【FreeRtos】FreeRtos + MPU模块的配置使用被打赏¥32元 | |
我要赚赏金
