HomePhabricator

[llvm-symbolizer] Make the output with -output-style=GNU closer to addr2line's

Description

[llvm-symbolizer] Make the output with -output-style=GNU closer to addr2line's

This patch addresses two differences in the output of llvm-symbolizer
and GNU's addr2line:

  • llvm-symbolizer prints an empty line after the report for an address.
  • 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.

Differential Revision: https://reviews.llvm.org/D60770