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: unassignedb...@nondot.org
Reporter: jh7370.2...@my.bristol.ac.uk
CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs