<div dir="ltr">I don't think this works.  \ and / are only identical on Windows.  On other platforms \ is a character that can actually appear in a string.  Furthermore, this doesn't address the issue in FileSpec, which also has issues dealing with Windows paths.  Incidentally, I was already working on a patch to address exactly this.  I think the correct fix is to fix it in FileSpec, and then update PathMappingList to use FileSpecs instead of ConstStrings.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 25, 2014 at 8:09 AM, Deepak Panickal <span dir="ltr"><<a href="mailto:deepak2427@gmail.com" target="_blank">deepak2427@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The slashes in the paths are not currently handled properly, especially when the binary is compiled in Windows and used in Linux and vice-versa. This is also a problem for source file mapping. The patch introduces a new function to handle strncmp for paths independently.<br>

<br>
<a href="http://reviews.llvm.org/D4666" target="_blank">http://reviews.llvm.org/D4666</a><br>
<br>
Files:<br>
  source/Target/PathMappingList.cpp<br>
<br>_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
<br></blockquote></div><br></div>