dawn added a comment.

> Are you saying that there is a situation where you are given a path, and you 
> have no idea whether it is a posix path or a windows path?


Yes.  For example, in lldb on OSX, we can be debugging an app that was built on 
OSX, or an app that was built on Windows targeting OSX.  More likely, we would 
be debugging an app that was built on Windows but links with libraries that 
were built on OSX.

I've thought of various ways to fit this into lldb...
One idea was to add:

  settings set target.pathsyntax [posix|windows|any|native] #default=native

and a FileSpec::ePathSyntaxAny enum which would be set if the user chose "any".
But that doesn't solve the problem for llvm, whose path handling appears to be 
controlled by the define LLVM_ON_WIN32.

Ideas?


Repository:
  rL LLVM

http://reviews.llvm.org/D12115



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to