[Lldb-commits] [lldb] [lldb-dap] Add process picker command to VS Code extension (PR #128943)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 1 13:18:00 PST 2025
================
@@ -0,0 +1,38 @@
+import { ChildProcessWithoutNullStreams, spawn } from "child_process";
+import { BaseProcessTree, ProcessTreeParser } from "../base-process-tree";
+
+export class LinuxProcessTree extends BaseProcessTree {
+ protected override spawnProcess(): ChildProcessWithoutNullStreams {
+ return spawn(
+ "ps",
+ ["-axo", `pid=PID,lstart=START,comm:128=COMMAND,command=ARGUMENTS`],
----------------
Da-Viper wrote:
we may also want to ignore traced/zombie processes as lldb won't be able to attach to those.
https://github.com/llvm/llvm-project/pull/128943
More information about the lldb-commits
mailing list