The latest efforts made "llvm-symbolizer" to behave very close to GNU's "addr2line" tool.
However, there are still some differences, which prevent it to be a drop-in replacement.
* "llvm-symbolizer" has "-I", "-f" and "-C" options ON by default;
* "llvm-symbolizer" prints line and position while "addr2line" prints only a line.
* "addr2line" allows more flexible usage of the "-e" option.
For example, "-fe <file>" and "-e<file>" command lines are handled smoothly.
We probably should not change the behavior of the existing tool, which might affect,
for example, parsers of its output. But what if we create another tool, say, "llvm-addr2line",
in the same way as "llvm-readelf" co-exists with "llvm-readobj"? That tool might
follow the behavior of "addr2line" better without risking to break compatibility
for current users of "llvm-symbolizer".
What do you think?
C++ Developer, Access Softek, Inc.