共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
跳转至
页
回复
有奖活动 | |
---|---|
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
【有奖活动】震撼来袭!这场直播将直击工程师的心灵! | |
“我想要一部加热台”活动,不花钱赢取开发好工具!活动开始了哦 | |
【有奖活动】伙伴们:您的“需求”解决了吗? | |
抽奖了,抽奖了,金升阳医疗电源 |
打赏帖 | |
---|---|
电解电容引发的问题被打赏50分 | |
【换取手持数字示波器】BeetleESP32C6+OLED被打赏40分 | |
【换取手持数字示波器】+ESP32C6与PWM(脉冲宽度调制)被打赏30分 | |
【换取手持数字示波器】+BeetleESP32C6初步探入,点灯被打赏30分 | |
玩转“DFRobot盖革计数器模块”+【安信可BW16-Kit】MQTTBasic被打赏40分 | |
玩转“DFRobot盖革计数器模块”+remotecontrol分享被打赏30分 | |
玩转“DFRobot盖革计数器模块”+灵动Motor-DK无感BLDC电机分享被打赏30分 | |
玩转“DFRobot盖革计数器模块”+NXPMCXN947ad分享被打赏30分 | |
Ubuntu18中文输入法设置被打赏30分 | |
【换取手持数字示波器】+树莓派pico驱动步进电机被打赏30分 |