[all-commits] [llvm/llvm-project] 175895: [lldb-vscode] Fix focus thread when previous threa...

tedwoodward via All-commits all-commits at lists.llvm.org
Wed Sep 15 16:09:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17589538aaef2b5ae27a0bfeb4346aff433aa59d
      https://github.com/llvm/llvm-project/commit/17589538aaef2b5ae27a0bfeb4346aff433aa59d
  Author: Ted Woodward <tedwood at quicinc.com>
  Date:   2021-09-15 (Wed, 15 Sep 2021)

  Changed paths:
    A lldb/test/API/tools/lldb-vscode/correct-thread/Makefile
    A lldb/test/API/tools/lldb-vscode/correct-thread/TestVSCode_correct_thread.py
    A lldb/test/API/tools/lldb-vscode/correct-thread/main.c
    M lldb/tools/lldb-vscode/lldb-vscode.cpp

  Log Message:
  -----------
  [lldb-vscode] Fix focus thread when previous thread exits

The thread that Visual Studio Code displays on a stop is called the focus thread. When the previous focus thread exits and we stop in a new thread, lldb-vscode does not tell vscode to set the new thread as the focus thread, so it selects the first thread in the thread list.

This patch changes lldb-vscode to tell vscode that the new thread is the focus thread. It also includes a test that verifies the DAP stop message for this case contains the correct values.

Reviewed By: clayborg, wallace

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




More information about the All-commits mailing list