首页 > 代码库 > Build gdb-7.7.1 for remote debug arm app
Build gdb-7.7.1 for remote debug arm app
GDB: The GNU Project Debugger
http://www.gnu.org/software/gdb/
Download from: ftp://sourceware.org/pub/gdb/releases/
Build:
PC side:
cd /opt/crosstool/src/gdb-7.7.1/./configure --target=arm-linux --prefix=/opt/crosstool/arm-gdbmake -j4sudo make install
ls /opt/crosstool/arm-gdb/bin
arm-linux-gdb arm-linux-run
arm side:
cd /opt/crosstool/src/gdb-7.7.1/gdb/gdbserver/CC=arm-linux-gcc ./configure --target=arm-linux --host=arm-linux --prefix=/opt/crosstool/arm-gdb/gdbservermake -j4sudo make install
ls /opt/crosstool/arm-gdb/gdbserver/bin/
arm-linux-gdbserver
Debug:
PC side:
cd helloarm-linux-gcc -g -o app hello.clsapp
arm side:
arm-linux-gdbserver pc_ip:port app [app_args ...]
PC side:
cd hello
arm-linux-gdb apptarget remote arm_ip:port
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。