[Lldb-commits] [PATCH] D76314: [lldb-vscode] stop read loop after termination
walter erquinigo via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 17 13:29:48 PDT 2020
wallace created this revision.
wallace added reviewers: clayborg, aadsm, kusmour.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
kusmour accepted this revision.
This revision is now accepted and ready to land.
On Linux, when executing lldb-vscode on a remote machine, lldb-vscode doesn't die after the debug session ends. It keeps trying to read JSON input to no avail.
This diff indicates lldb-vscode to stop reading after a termination event has been processed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76314
Files:
lldb/tools/lldb-vscode/lldb-vscode.cpp
Index: lldb/tools/lldb-vscode/lldb-vscode.cpp
===================================================================
--- lldb/tools/lldb-vscode/lldb-vscode.cpp
+++ lldb/tools/lldb-vscode/lldb-vscode.cpp
@@ -2821,7 +2821,7 @@
}
auto request_handlers = GetRequestHandlers();
uint32_t packet_idx = 0;
- while (true) {
+ while (!g_vsc.sent_terminated_event) {
std::string json = g_vsc.ReadJSON();
if (json.empty())
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76314.250878.patch
Type: text/x-patch
Size: 443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200317/92d36eee/attachment.bin>
More information about the lldb-commits
mailing list