12 March 2012

102. Gnu Debugger (dgb) on CentOS/ROCKS 5.4.3

For a distro dedicated to HPC ROCKS seems to lack every single debugging tool that I'm familiar with. Here's another one: gdb

 --START HERE --


First compile texinfo:
cd ~/tmp
wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.12.tar.gz
tar -xvf texinfo-4.12.tar.gz
cd texinfo-4.12/
./configure
make
sudo make install


ln -s /usr/loca/bin/makeinfo /usr/bin/makeinfo

Then gdb:
cd ~/tmp
wget http://ftp.gnu.org/gnu/gdb/gdb-7.4.tar.gz
tar -xvf gdb-7.4.tar.gz
cd gdb-7.4/
./configure
make
sudo make install

If you haven't symlinked makeinfo above you'll get errors.

Usage:
gdb programme
(gdb) run arg1 arg2



No comments:

Post a Comment