ITK/GDBPretty/Installation/Linux: Difference between revisions

From KitwarePublic
< ITK‎ | GDBPretty
Jump to navigationJump to search
(Replaced content with "* Fedora 14 * Debian Squeeze")
 
(59 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Fedora 14 example =
* [[ITK/GDBPretty/Installation/Linux/Fedora14 | Fedora 14]]
 
* [[ITK/GDBPretty/Installation/Linux/DebianSqueeze | Debian Squeeze]]
== Install package dependencies ==
 
yum install gcc gcc-c++ git texinfo ncurses-devel flex bison
 
== Build custom GDB ==
 
=== Build it ===
 
cd ~
mkdir gdb
cd gdb
git clone git://gitorious.org/~thewtex/gdb-python/archer-thewtex-python.git source
mkdir build install
cd build
../source/configure --prefix=$(cd ../install && pwd)
make -j2 all install
 
=== Put it at the top of the system PATH ===
 
su -
cd /usr/local/bin
ln -s /home/user/gdb/install/bin/gdb
exit
 
Logout and login to a new shell to ensure the system follows the new path.
 
== Install custom pretty-printers ==
 
=== Basic pretty-printers ===
 
yum install python-matplotlib
 
Place the following in ''~/.gdbinit''
<pre>
some stuff
oeau eoau
  aoue
</pre>
 
mkdir ~/gdb/gdb-pretty
 
=== ''libstdcxx'' pretty-printers ===
 
cd ~/gdb/gdb-pretty
git clone http://git.gitorious.org/gdb-pretty/gdb-pretty-libstdcxx.git libstdcxx

Latest revision as of 20:09, 20 November 2010