gdb交叉环境调试
一 开发板环境
gdb调试只支持glibc环境
开发板运行
./gdbserver 10.4.3.202:223344 /etc/lv_demo_album/lv_demo_album
gdbserver文件位于tools/toolchains/mips-gcc720-glibc229/mips-linux-gnu/libc/usr/lib/bin/gdbserver
10.4.3.202是开发板端ip, 确保与pc端ping通, 223344是指定的端口, 可任意填
/etc/lv_demo_album/lv_demo_album 板端需要调试的应用
二 PC 端环境
pc端运行
bhu@bhu-PC:~/Desktop$ ./mips-linux-gnu-gdb ./lv_demo_album
mips-linux-gnu-gdb文件位于tools/toolchains/mips-gcc720-glibc229/bin/mips-linux-gnu-gdb
lv_demo_album 板端需要调试的应用
(gdb) target remote 10.4.3.202:223344
10.4.3.202是开发板端ip, 223344与板端端口一致