[all-commits] [llvm/llvm-project] 4c2b0a: [lldb/Utility] Don't forward directories to the fi...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Jan 22 15:02:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c2b0a63661576c1849862bad3978050fc6a2ff7
      https://github.com/llvm/llvm-project/commit/4c2b0a63661576c1849862bad3978050fc6a2ff7
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-01-22 (Wed, 22 Jan 2020)

  Changed paths:
    M lldb/include/lldb/Host/FileSystem.h
    M lldb/source/Host/common/FileSystem.cpp

  Log Message:
  -----------
  [lldb/Utility] Don't forward directories to the file collector

The VFS mapping writer assumes that all the paths it gets are files.
When passed a directory, it ends up as a file in the VFS mapping twice,
once as a file and once as a directory.

  {
    'type': 'file',
    'name': "Output",
    'external-contents': "/root/path/to/Output"
  },
  {
    'type': 'directory',
    'name': "Output",
    'contents': [ ... ]
  }




More information about the All-commits mailing list