[Lldb-commits] [lldb] [lldb] Adds additional fields to ProcessInfo (PR #91544)
Fred Grim via lldb-commits
lldb-commits at lists.llvm.org
Thu May 9 08:43:29 PDT 2024
================
@@ -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
More information about the lldb-commits
mailing list