Have lldb-vscode update the currently selecte thread and frame when it receives a...
authorGreg Clayton <gclayton@fb.com>
Thu, 2 Apr 2020 23:30:33 +0000 (16:30 -0700)
committerGreg Clayton <gclayton@fb.com>
Fri, 3 Apr 2020 01:35:17 +0000 (18:35 -0700)
commit5998aceda9fdca04db4d9ee390cec660896bf0bf
tree9ad100f71510992ea694cf1dbd8b62a1c4485851
parentc7aff9a109b611e4954a3055061a8076b4baa385
Have lldb-vscode update the currently selecte thread and frame when it receives a "scopes" request.

Summary: The IDE has no packets that are sent to lldb-vscode that say which thread and frame are selected. The only way we know is we get a request for variables for a stack frame via a "scopes" request. When we receive this packet we make that thread and frame the selected thread and frame in lldb. This way when people execute lldb commands in the debug console by prefixing the expression with the backtick character, we will have the right thread and frame selected. Previously this was not updated as new stack frames were selected.

Reviewers: labath, aadsm, wallace, JDevlieghere

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D77347
lldb/test/API/tools/lldb-vscode/console/Makefile [new file with mode: 0644]
lldb/test/API/tools/lldb-vscode/console/TestVSCode_console.py [new file with mode: 0644]
lldb/test/API/tools/lldb-vscode/console/main.cpp [new file with mode: 0644]
lldb/tools/lldb-vscode/lldb-vscode.cpp