• 5396阅读
  • 0回复

gdb调试问题 [复制链接]

上一主题 下一主题
离线dalian_lgf
 

只看楼主 倒序阅读 楼主  发表于: 2008-02-18
gdb调试问题
— 本帖被 XChinux 执行加亮操作(2008-06-13) —
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行
不知道什么原因,请高手指教?


快速回复
限100 字节
 
上一个 下一个