[Lldb-commits] [PATCH] D12115: [LLDB-MI] Fix -data-info-line when Windows filenames are used.

Dawn Perchik via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 18 16:49:11 PDT 2015


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





More information about the lldb-commits mailing list