This is an archive of the discontinued LLVM Phabricator instance.

Add addr2line aliases for symbolizer
AbandonedPublic

Authored by khemant on Jun 3 2015, 10:50 AM.

Details

Summary

Add -i for -inlining, -C for demangler and -e for -obj option.

Diff Detail

Repository
rL LLVM

Event Timeline

khemant updated this revision to Diff 27053.Jun 3 2015, 10:50 AM
khemant retitled this revision from to Add addr2line aliases for symbolizer.
khemant updated this object.
khemant edited the test plan for this revision. (Show Details)
khemant set the repository for this revision to rL LLVM.
khemant added a subscriber: Unknown Object (MLST).
emaste added a subscriber: emaste.Jun 3 2015, 11:12 AM

FWIW, as far as I can tell binutils addr2line spells the long versions of these as --inlines, --demangle, --exe, and ELF Tool Chain addr2line does too (but does not support -i). Should we have those as aliases as well?

Sure. We could add them.

samsonov added a subscriber: samsonov.

First of all, what is your use case?

I have a minor concern about adding these aliases: I'm not sure that merging command line options would work for LLVM tools. So, for instance, you won't be able to write llvm-symbolizer -Cfi as you can write addr2line -Cfi, so we will not have drop-in replacement anyway.

Also, please update the docs.

khemant abandoned this revision.Oct 12 2015, 1:33 PM