summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-13 20:31:46 +0200
committerLioncash <mathew1800@gmail.com>2018-10-13 23:00:43 +0200
commit1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b (patch)
tree642d98d32c3ebf52da69fbc3b47e2f41dfc03a2c /src/core/hle/kernel/process.h
parentMerge pull request #1409 from DarkLordZach/key-derivation (diff)
downloadyuzu-1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b.tar
yuzu-1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b.tar.gz
yuzu-1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b.tar.bz2
yuzu-1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b.tar.lz
yuzu-1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b.tar.xz
yuzu-1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b.tar.zst
yuzu-1c7a7ed79ba55c5fdefd729b12d6b8aa86a0779b.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 {