富瀚MC6630移植并安装GDB调试工具
下载gdb所需的源文件-------------“点这里”
解压并安装ncurses-5.9
1. cd ncurses-5.6 //进入解压后目录
2. /configure --host=arm-mol-linux-uclibcgnueabihf --prefix=/usr/local/ncurse --without-ada --enable-termcap --with-shared
//host:交叉工具链的声明,prefix:安装的路径
4. make
5. make install
解压并安装expat_2.0.1.orig
1. cd expat_2.0.1
2. ./configure --prefix=/usr/local/expat --host=arm-mol-linux-uclibcgnueabihf
//host:交叉工具链的声明,prefix:安装的路径
3. make
4. make install
解压并安装gdb-7.6
1. cd gdb-7.6
2. sudo apt-get install texinfo; sudo apt-get install libncurses5-dev; sudo apt-get install m4; sudo apt-get install flex; sudo apt-get install bison;sudo apt-get install libc6-dev
3. ./configure --host=arm-mol-linux-uclibcgnueabihf --enable-shared --prefix=/usr/local/gdb --without-x --disable-gdbtk --disable-tui --disable-werror --without-included-regex --without-included-gettext CPPFLAGS=-I/usr/local/ncurse/include LDFLAGS=-L/usr/local/ncurse/lib
4. make
5. make install
在板端配置环境
cp gdb命令
cp 所需的lib
板端挂载nfs,并配置gdb命令和lib的环境
export LD_LIBRARY_PATH=/mnt/lib:$LD_LIBRARY_PATH
export PATH=$PATH:/mnt/bin