[Lldb-commits] [lldb] [lldb][lldb-dap] show modules pane if supported by the adapter (PR #140603)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Tue May 20 09:49:42 PDT 2025
================
@@ -35,14 +35,24 @@ export class DebugSessionTracker
* The modules are kept in an array to maintain the load order of the modules.
*/
private modules = new Map<vscode.DebugSession, DebugProtocol.Module[]>();
- private modulesChanged = new vscode.EventEmitter<void>();
+ private modulesChanged = new vscode.EventEmitter<
+ vscode.DebugSession | undefined
+ >();
/**
* Fired when modules are changed for any active debug session.
*
* Use `debugSessionModules` to retieve the active modules for a given debug session.
*/
- onDidChangeModules: vscode.Event<void> = this.modulesChanged.event;
+ onDidChangeModules: vscode.Event<vscode.DebugSession | undefined> =
+ this.modulesChanged.event;
+
+ constructor() {
+ this.onDidChangeModules(this.moduleChangedListener, this);
----------------
da-viper wrote:
It also responds to the onExit event on line 81
https://github.com/llvm/llvm-project/pull/140603
More information about the lldb-commits
mailing list