Skip to content

Commit 5a958cd

Browse files
JlalondJDevlieghere
authored andcommitted
[LLDB][LLDB-DAP] Wire up DAP to listen to external progress events (llvm#123826)
Recently I added SBProgress (llvm#119052), and during that original commit I tested if the progress event was sent over LLDB-DAP, and it was. However upon the suggestion of @JDevlieghere and @labath we added an external category (llvm#120171), which I did not test. This small patch wires up DAP to listen for external events by default, and adds the external category to the SBDebugger enumeration. (cherry picked from commit b9813ce)
1 parent dfd316b commit 5a958cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/tools/lldb-dap/lldb-dap.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ void SendStdOutStdErr(DAP &dap, lldb::SBProcess &process) {
411411
void ProgressEventThreadFunction(DAP &dap) {
412412
lldb::SBListener listener("lldb-dap.progress.listener");
413413
dap.debugger.GetBroadcaster().AddListener(
414-
listener, lldb::SBDebugger::eBroadcastBitProgress);
414+
listener, lldb::SBDebugger::eBroadcastBitProgress |
415+
lldb::SBDebugger::eBroadcastBitExternalProgress);
415416
dap.broadcaster.AddListener(listener, eBroadcastBitStopProgressThread);
416417
lldb::SBEvent event;
417418
bool done = false;

0 commit comments

Comments
 (0)