<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - llvm-symbolizer: add --basenames/-s functionality"
   href="https://bugs.llvm.org/show_bug.cgi?id=40068">40068</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-symbolizer: add --basenames/-s functionality
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jh7370.2008@my.bristol.ac.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>