|
使用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.
|
|