您的位置:首页 > 其它

tracef 安装 跟踪 函数调用图

2015-11-18 16:11 337 查看
http://www.prevanders.net/dwarf.html

redhat 5.4

tar -zxvf libdwarf-20140519.tar.gz

[root@localhost dwarf-20140519]# pwd
/root/dwarf-20140519

cd libdwarf

./configure --enable-shared

make

cp libdwarf.so /usr/local/lib/

cp *.h /usr/include/libdwarf/

yum install boost-devel

然后再安装tracef-0.16

o just build libdwarf and dwarfdump one might do:
./configure
make dd
#You may need to be root to do the following copy commands
cp dwarfdump/dwarfdump      /usr/local/bin
cp dwarfdump/dwarfdump.conf /usr/local/lib
#The following is optional, not needed to run dwarfdump
#when doing the default build.
cp libdwarf/libdwarf.a      /usr/local/lib

For a simple build of libdwarf, dwarfdump, and dwarfdump2
and the other tools:
./configure
make
cp dwarfdump2/dwarfdump <somewhere>
#Optionally: cp libdwarf/libdwarf.a <somewhere>

To build all the tools (including dwarfgen and
dwarfexample) use 'make all'. There are known
small compile-time issues with building dwarfgen on
MaxOSX and most don't need to build dwarfgen.
./configure
make all

To also build a shared libdwarf in the process, do:
./configure --enable-shared
make
cp libdwarf/libdwarf.so <somewhere>
cp dwarfdump2/dwarfdump <somewhere>

When ready to create a new distro,
do
./CPTOPUBLIC
./BLDLIBDWARF yyyymmdd
where that could be
./BLDLIBDWARF 20140131
as an example.

David Anderson.  Updated February 2, 2014.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: