summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-01 08:42:58 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-01 08:42:58 -0400
commitdfe8093c1ad16e1611c12e88d52d1ac38371d3f6 (patch)
tree3952f970ef9a4315ab143553c94f16a220b72faf /src/shared/util.h
parent5a74b02442302fb484b1db68cf0ce1736af4911c (diff)
added --crashdump to generate dumps of a running MO process
added dump_running_process.bat to start another instance of MO with that flag
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 6b842f8c..2296651c 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -284,6 +284,23 @@ private:
void getSecurityFeatures();
};
+
+enum class CoreDumpTypes
+{
+ Mini = 1,
+ Data,
+ Full
+};
+
+// creates a minidump file for the given process
+//
+bool coredump(CoreDumpTypes type);
+
+// finds another process with the same name as this one and creates a minidump
+// file for it
+//
+bool coredumpOther(CoreDumpTypes type);
+
} // namespace env