target板执行#include<stdio.h>时遇到问题 - AM437x - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3195|回复: 1

[已解决] target板执行#include<stdio.h>时遇到问题

[复制链接]

45

主题

75

帖子

1080

积分

金牌会员

Rank: 6Rank: 6

积分
1080
发表于 2017-7-21 10:34:03 | 显示全部楼层 |阅读模式
使用GDB+GDBserver调试一个简单测试程序时遇到了如下问题:在执行#include<stdio.h>时,一直显示(gdb) continuing。该如何解决?谢谢各位前辈
(gdb) l
1        #include <QCoreApplication>
2        #include <stdio.h>
3       
4        int main(int argc, char *argv[])
5        {
6            QCoreApplication a(argc, argv);
7            printf("hello world!");
8            return a.exec();
9        }
(gdb) b2
Undefined command: "b2".  Try "help".
(gdb) b 2
Breakpoint 1 at 0x8774: file ../helloworld/main.cpp, line 2.
(gdb) c
Continuing.
warning: Could not load shared library symbols for 13 libraries, e.g. /usr/lib/libQt5Core.so.5.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?

Breakpoint 1, main (argc=1, argv=0xbefffd74) at ../helloworld/main.cpp:6
6            QCoreApplication a(argc, argv);
(gdb) Quit
(gdb) b 3
Note: breakpoint 1 also set at pc 0x8774.
Breakpoint 2 at 0x8774: file ../helloworld/main.cpp, line 3.
(gdb) c
Continuing.




回复

使用道具 举报

3

主题

852

帖子

3538

积分

创龙

Rank: 8Rank: 8

积分
3538
发表于 2017-7-21 17:30:13 | 显示全部楼层

回帖奖励 +5

你直接运行看看有问题没,不插入断点看看
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|嵌入式开发者社区 ( 粤ICP备15055271号

GMT+8, 2024-4-18 10:55 , Processed in 0.036188 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

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