llvm-symbolizer, with the latest updates, works very similarly to GNU's addr2line. The main difference is in the defaults both tools use. In particular:
- llvm-symbolizer has "-I", "-f" and "-C" options ON by default;
- llvm-symbolizer prints line and column while addr2line prints only a line.
- With "-f -i=0", llvm-symbolizer replaces the name of an inlined function with the name from the symbol table, i. e., the top caller function in the inlining chain. addr2line preserves the name of the inlined function.
This patch adds an alias for llvm-symbolizer which is tuned to follow the behavior of addr2line better.