2008-11-22 118 views
1

接受极度嘲讽的可能性,我必须承认我真的怀念Sun的Teamware的文件合并工具。我已经从solaris切换到red hat linux,并且经常发现自己缺少filemerge(不要与Apple的同名工具混淆)以及solaris版本的pstack(它对核心文件以及pids )。solaris filemerge和pstack相当于linux

做任何专家有任何安慰的建议?融合祖先的更好的合并工具?以单线方式查看核心文件的调用堆栈?

请帮忙!

回答

4

gdb -ex bt program_file core_file应该打印出核心文件的堆栈跟踪。

至于filemrege,有一堆开源的东西:

tkdiff MELD mgdiff kdiff3

1

MELD是伟大

1

我用kdiff3代替filemerge的。 kdiff3可以更好地解决文件合并冲突。

用法:

kdiff3 x.A.cpp x.C.cpp x.P.cpp -o x.M.cpp 

其中:运行resolve命令后

x.A.cpp - ancestor version of x.cpp 
x.C.cpp - child verion of x.cpp 
x.P.cpp - parent version of x.cpp 
x.M.cpp - merged file 

这些文件产生的。