I want to use gdb to do that.. In gdb we can load release version of
executable's symbol file using symbol-file . when we do
that, the debug information is gets attached in the debugging session and we
can see all debug information like line numbers, functions names as we see
with a debug binary.
I have downloaded the binutils sources from
http://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2 and followed the
below steps to build the binutils.
bash-3.2#bunzip binutils-2.20.1.tar.bz2
bash-3.2#tar xvf binutils-2.20.1.tar
bash-3.2#mkdir objdir_2.20.1
bash-3.2#ls -l
binutils-2.20.1.tar
bin