================
@@ -144,6 +144,19 @@ class ProcessInstanceInfo : public ProcessInfo {
     long int tv_usec = 0;
   };
 
+  enum class ProcessState {
+    Unknown,
+    Dead,
+    DiskSleep,
+    Idle,
+    Paging,
+    Parked,
+    Running,
+    Sleeping,
+    TracedOrStopped,
+    Zombie,
+  };
+
----------------
feg208 wrote:

yeah. So if you look at the definition of ELFLinuxPrPsInfo there is a char 
member `pr_state` that will be something like T or Z or whatever. So we'd need 
these available to set that assuming we didn't want OS specific codes in there 
which are very linux specific (I found the mapping in the linux kernel code). 
Maybe we should move it back though? I mean for the purpose of generating a 
core the state is always going to be TraceOrStopped in any case.

https://github.com/llvm/llvm-project/pull/91544
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to