<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Settings breakpoints using absolute file path that contains symlinks does not work"
href="https://llvm.org/bugs/show_bug.cgi?id=31707">31707</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Settings breakpoints using absolute file path that contains symlinks does not work
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexandru.croitor@qt.io
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Consider I have a C++ file at: /Users/alex/Dev/project/main.cpp
and I compiled the file there with:
clang++ -g -O0 ./main.cpp
Now if I try to set a breakpoint with:
br set -f /Users/alex/Dev/project/main.cpp -l 10
the breakpoint will work.
But if I try to set a breakpoint with:
br set -f /Volumes/Macintosh\ HD/Users/alex/Dev/project/main.cpp -l 10
the breakpoint will not work, because it differs from the DWARF written
filepath.
Machintosh HD is a symlink to /
$ ls -al /Volumes/
lrwxr-xr-x 1 root admin 1 Dec 23 07:40 Macintosh HD -> /
Should lldb maybe consider using the canonical path to a given file, when
setting a breakpoint?
(lldb) version
lldb-360.99.0
clang revision a41b64721d4be78870711cbb7b5af156a9e1f4ad
llvm revision 3c45ea423a9e3d27eaf77af0639a73e0c56d9a35</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>