[all-commits] [llvm/llvm-project] 1c05c5: [lldb-vscode] Fix coredump load source mapping for...

tedwoodward via All-commits all-commits at lists.llvm.org
Mon Nov 1 08:48:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c05c52de2177a328b7d2d07b697af67eb9f8122
      https://github.com/llvm/llvm-project/commit/1c05c52de2177a328b7d2d07b697af67eb9f8122
  Author: Ted Woodward <tedwood at quicinc.com>
  Date:   2021-11-01 (Mon, 01 Nov 2021)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/lldbvscode_testcase.py
    M lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
    M lldb/test/API/tools/lldb-vscode/coreFile/TestVSCode_coreFile.py
    A lldb/test/API/tools/lldb-vscode/coreFile/main.c
    M lldb/tools/lldb-vscode/lldb-vscode.cpp

  Log Message:
  -----------
  [lldb-vscode] Fix coredump load source mapping for first file

SetSourceMapFromArguments is called after the core is loaded. This means
that the source file for the crashing code won't have the source map applied.
Move the call to SetSourceMapFromArguments in request_attach to just after
the call to RunInitCommands, matching request_launch behavior.

Reviewed By: clayborg, wallace

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




More information about the All-commits mailing list