共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 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| STM32C0116DK开发探索记(3)被打赏¥30元 | |
| STM32C0116DK开发探索记(2)被打赏¥24元 | |
| STM32C0116DK开发探索记(1)被打赏¥29元 | |
| 谨防极海G32M3101电机评估板易跌落的陷阱被打赏¥24元 | |
| 【全网首拆】M5STACK ATOM系列开发板拆解 / AtomS3R-CAM摄像头更换方法(提高10倍像素)被打赏¥26元 | |
| 基于MCP23S17的输入输出功能模块控制被打赏¥20元 | |
| 【S32K3XX】SPD 软件包使用Link文件修改被打赏¥22元 | |
| Switch-Case局部变量定义问题被打赏¥23元 | |
| 基于米尔TIAM62L开发板的串口通信及应用被打赏¥20元 | |
| PCF8574功能模块及其使用被打赏¥20元 | |
我要赚赏金
