嵌入式开发者社区

标题: target板执行#include<stdio.h>时遇到问题 [打印本页]

作者: TL_user    时间: 2017-7-21 10:34
标题: target板执行#include<stdio.h>时遇到问题
使用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.





作者: human    时间: 2017-7-21 17:30
你直接运行看看有问题没,不插入断点看看




欢迎光临 嵌入式开发者社区 (https://51ele.net/) Powered by Discuz! X3.4