1.qtopia-opensource-4.3.0
交叉编译为debug版,然后编译qtopia-opensource-4.3.0\examples\application下的例子程序,过程如下:
qtopiamake -project
修改.pro, 增加CONFIG+=debug
qtopiamake
make
make install
2.用gdb进行远程调试:
1> client:arm-linux-gdbserver hostip:1234 example -qws &
2> host : arm-linux-gdb example
target remote clientip:1234
3. 问题:
b main
Note: breakpoints 1, 2, 3 and 4 also set at pc 0xb848.
Breakpoint 5 at 0xb848: file main.cpp, line 372.
list
Line number 372 out of range; main.cpp has 72 lines. //main.cpp只有72行
不知道什么原因,请高手指教?