首页 > 移动平台 > 详细

Build gdb-7.7.1 for remote debug arm app

时间:2014-07-07 14:40:24      阅读:380      评论:0      收藏:0      [点我收藏+]

 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-gdb
make -j4
sudo 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/gdbserver
make -j4
sudo make install
ls /opt/crosstool/arm-gdb/gdbserver/bin/
arm-linux-gdbserver

 

Debug:

PC side:

cd hello
arm-linux-gcc -g -o app hello.c
ls
app

 

arm side:

arm-linux-gdbserver pc_ip:port app [app_args ...]

PC side:

cd hello
arm-linux-gdb app target remote arm_ip:port

 

Build gdb-7.7.1 for remote debug arm app,布布扣,bubuko.com

Build gdb-7.7.1 for remote debug arm app

原文:http://www.cnblogs.com/kozmers/p/3815258.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!