[all-commits] [llvm/llvm-project] 30350c: [source maps] Ensure all valid source maps are add...

walter erquinigo via All-commits all-commits at lists.llvm.org
Wed Apr 1 13:01:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 30350c254106ce25b16b13f05e713ceb2b15ce09
      https://github.com/llvm/llvm-project/commit/30350c254106ce25b16b13f05e713ceb2b15ce09
  Author: Walter Erquinigo <waltermelon at fb.com>
  Date:   2020-04-01 (Wed, 01 Apr 2020)

  Changed paths:
    M lldb/source/Interpreter/OptionValuePathMappings.cpp
    M lldb/test/API/functionalities/source-map/TestTargetSourceMap.py

  Log Message:
  -----------
  [source maps] Ensure all valid source maps are added instead of failing with the first invalid one

Summary:
Several lldb-vscode users have noticed that when a source map rule is invalid (because a folder doesn't exist anymore), the rest of the source maps from their configurations are not applied.
This happens because lldb-vscode executes a single "settings set target.source-map" command with all the source maps and LLDB processes them one by one until one fails.

Instead of doing this, we can process in LLDB all the source map rules and apply the valid ones instead of failing fast.

Reviewers: clayborg, labath, kusmour, aadsm

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D77186




More information about the All-commits mailing list