[Lldb-commits] [PATCH] [2/2] Fix Path support on Windows

Zachary Turner zturner at google.com
Fri Jul 25 11:52:48 PDT 2014


Hi deepak2427,

This gives FileSpec the notion of a path syntax, of which there are 3.  Unix Native, Windows Native, and Host Native, which chooses between Unix and Linux automatically.  This allows cross-platform support (e.g. storing a Unix Path on a Windows Host).

There are remaining Path issues in PathMappingList.  These should be fixed independently by storing FileSpecs instead of ConstStrings, and using the fixes in this patch.  Alternatively, llvm::sys::path contains path methods that might help here.

http://reviews.llvm.org/D4675

Files:
  include/lldb/Host/FileSpec.h
  include/lldb/Host/Host.h
  source/Host/common/FileSpec.cpp
  source/Host/common/Host.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4675.11891.patch
Type: text/x-patch
Size: 10533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140725/6ef847e9/attachment.bin>


More information about the lldb-commits mailing list