summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-14 20:37:58 +0200
committerGitHub <noreply@github.com>2018-10-14 20:37:58 +0200
commit2f8ca32020d2b32abfcb96d433ca79c4974e15be (patch)
tree8a63f146f9b1a4f647900866f84142c08784611b /src/core/hle/kernel/process.h
parentMerge pull request #1495 from ogniK5377/break-stop (diff)
parentsvc: Implement svcGetProcessInfo (diff)
downloadyuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.tar
yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.tar.gz
yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.tar.bz2
yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.tar.lz
yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.tar.xz
yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.tar.zst
yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.zip
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h21
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 {