diff options
| author | bunnei <bunneidev@gmail.com> | 2018-10-14 14:37:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-14 14:37:58 -0400 |
| commit | 2f8ca32020d2b32abfcb96d433ca79c4974e15be (patch) | |
| tree | 8a63f146f9b1a4f647900866f84142c08784611b /src/core/hle/kernel/process.h | |
| parent | b183ce43656c25db769f26ac081b8588ef55bd95 (diff) | |
| parent | 1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b (diff) | |
Merge pull request #1492 from lioncash/proc
svc: Implement svcGetProcessInfo
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 73ec01e11..f2816943a 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -24,6 +24,7 @@ class ProgramMetadata; namespace Kernel { class KernelCore; +class ResourceLimit; struct AddressMapping { // Address and size must be page-aligned @@ -57,9 +58,23 @@ union ProcessFlags { BitField<12, 1, u16> loaded_high; ///< Application loaded high (not at 0x00100000). }; -enum class ProcessStatus { Created, Running, Exited }; - -class ResourceLimit; +/** + * Indicates the status of a Process instance. + * + * @note These match the values as used by kernel, + * so new entries should only be added if RE + * shows that a new value has been introduced. + */ +enum class ProcessStatus { + Created, + CreatedWithDebuggerAttached, + Running, + WaitingForDebuggerToAttach, + DebuggerAttached, + Exiting, + Exited, + DebugBreak, +}; struct CodeSet final { struct Segment { |
