]> granicus.if.org Git - llvm/commit
[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)
commitcfefa04a680538d06d160f22dd1a475ef395c4ec
tree59ca73bec16e487fdad8be94310d32c9473a1e14
parent2df0acd2ffd04f92632cc2746c4a7cde319a9c8a
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358747 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-symbolizer/output-style-column.test [moved from test/tools/llvm-symbolizer/output-style.test with 100% similarity]
test/tools/llvm-symbolizer/output-style-empty-line.test [new file with mode: 0644]
test/tools/llvm-symbolizer/output-style-inlined.test [new file with mode: 0644]
tools/llvm-symbolizer/llvm-symbolizer.cpp