gdb+gdbserver 嵌入式调试
- 编译:
下载 ftp://ftp.gnu.org/gnu/gdb/gdb-7.11.1.tar.gz
gdbserver编译
./configure --target=arm-linux --host=arm-linux
make
- arm设置
ulimit -c 1024
echo /tmp/core > /proc/sys/kernel/core_pattern
gdbserver --debug armip:8888 --attach pid
set solib-search-path /home/ubuntu/Code/app/lib
set solib-absolute-prefix /home/ubuntu/Code/app/lib
info sharedlibrary
- pc设置
cmd文件
target remote 192.168.1.126:8888
bt
arm-linux-gdb --command=cmd