[Lldb-commits] [lldb] [lldb-dap] Add process picker command to VS Code extension (PR #128943)

Matthew Bastien via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 6 15:37:37 PST 2025


================
@@ -0,0 +1,52 @@
+import * as path from "path";
+import { BaseProcessTree, ProcessTreeParser } from "../base-process-tree";
+import { ChildProcessWithoutNullStreams, spawn } from "child_process";
+
+export class WindowsProcessTree extends BaseProcessTree {
+  protected override spawnProcess(): ChildProcessWithoutNullStreams {
+    const wmic = path.join(
+      process.env["WINDIR"] || "C:\\Windows",
+      "System32",
+      "wbem",
+      "WMIC.exe",
----------------
matthewbastien wrote:

Looks like `Get-CimInstance` is the preferred method for future-proofing's sake. I've updated the `WindowsProcessTree` to use that instead.

https://github.com/llvm/llvm-project/pull/128943


More information about the lldb-commits mailing list