qt使用gdb调试进行断点提示no line
main.cpp
 
#include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
    QApplication a( argc, argv );//第7行
    QPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );
    hello.show();
    return a.exec();
}
编译好后 已经添加-g选项
This GDB was configured as "i686-pc-mingw32"...
(gdb) l
1       #include <qapplication.h>
2       #include <qpushbutton.h>
3
4
5       int main( int argc, char **argv )
6       {
7           QApplication a( argc, argv );
8
9           QPushButton hello( "Hello world!", 0 );
10          hello.resize( 100, 30 );
(gdb) break 7
No line 7 in file "main.cpp".
(gdb) break 10
当输入break 7时候提示寻找不到 这行
 
大神们  谁能解决这个问题啊