继续测试中,我打了断点在main函数上,但断点的地址没在main函数上,所以当我c的时候不会停下来;
为什么我这个断点地址会错误偏移了呢??
(gdb) target remote :9999
Remote debugging using :9999
Cannot access memory at address 0x0
Reading symbols from /opt/FriendlyARM/tiny4412/Android/android-4.2.2_r1/out/target/product/tiny4412/symbols/system/bin/linker...done.
Loaded symbols for /opt/FriendlyARM/tiny4412/Android/android-4.2.2_r1/out/target/product/tiny4412/symbols/system/bin/linker
__dl__start () at bionic/linker/arch/arm/begin.S:35
35 mov r0, sp
(gdb) i b
Num Type Disp Enb Address What
3 breakpoint keep y 0x400d0470 in main at hello/hellotest.c:5
(gdb) d
删除所有断点吗? (y or n) y
(gdb) b hello/hellotest.c :main
Breakpoint 4 at 0x400d0470: file hello/hellotest.c, line 5.
(gdb) c
Continuing.