[llvm-bugs] [Bug 26188] New: FileSpec::RemoveBackupDots should also remove single dots
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 17 23:57:01 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26188
Bug ID: 26188
Summary: FileSpec::RemoveBackupDots should also remove single
dots
Product: lldb
Version: 3.8
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: vadimcn at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
A breakpoint being set in file C:\foo\bar.c won't match a compile unit with
DW_AT_comp_dir=C:\foo and DW_AT_name=.\bar.c
I've discovered this by debugging LLDB while trying to figure out why wouldn't
it set a breakpoint by full file path+line. It seems that the compile unit
path gets transformed into a FileSpec { m_directory="c:\foo\.",
m_filename="bar.c" ... }, and that trailing dot prevents a match. One way to
fix this would be to teach FileSpec::RemoveBackupDots to strip single dots from
paths, since they don't add anything semantically.
--
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/20160118/f68af209/attachment.html>
More information about the llvm-bugs
mailing list