[llvm-bugs] [Bug 40068] New: llvm-symbolizer: add --basenames/-s functionality

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 18 02:44:53 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=40068

            Bug ID: 40068
           Summary: llvm-symbolizer: add --basenames/-s functionality
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

GNU addr2line has a --basenames (aka -s) switch which is used when printing
file paths. Instead of printing the full directory path, it prints only the
base filename:

C:\Work\TempWork> addr2line 0x20 -e main.elf
C:\Work\TempWork/main.cpp:14
C:\Work\TempWork> addr2line 0x20 -e main.elf --basenames
main.cpp:14

I propose we add this to llvm-symbolizer. Adding this should be pretty simple
and would improve our GNU compatibility. It also makes the output more readable
when used (if we don't care about full paths), especially when dealing with
deep directory structures. There may well be other use-cases that I can't
immediately think of as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181218/919d1b7d/attachment.html>


More information about the llvm-bugs mailing list