[llvm-symbolizer] Make the output with -output-style=GNU closer to addr2line's
authorIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 19 Apr 2019 10:12:56 +0000 (10:12 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 19 Apr 2019 10:12:56 +0000 (10:12 +0000)
commit4bc29cbf6b393f8e4219043ba0fb901d734e0bcd
tree68b244e26fb9f115441e12fe04e708b1b473c2ae
parent4c09b7d921b44dfeb50d49d0f74d307dbe73fd7a
[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

llvm-svn: 358747
llvm/test/tools/llvm-symbolizer/output-style-column.test [moved from llvm/test/tools/llvm-symbolizer/output-style.test with 100% similarity]
llvm/test/tools/llvm-symbolizer/output-style-empty-line.test [new file with mode: 0644]
llvm/test/tools/llvm-symbolizer/output-style-inlined.test [new file with mode: 0644]
llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp