summaryrefslogtreecommitdiff
path: root/lldb/tools/yaml2macho-core/ThreadWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/yaml2macho-core/ThreadWriter.h')
-rw-r--r--lldb/tools/yaml2macho-core/ThreadWriter.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/lldb/tools/yaml2macho-core/ThreadWriter.h b/lldb/tools/yaml2macho-core/ThreadWriter.h
new file mode 100644
index 000000000000..58ce4abdf0d1
--- /dev/null
+++ b/lldb/tools/yaml2macho-core/ThreadWriter.h
@@ -0,0 +1,24 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+/// \file
+/// Functions to emit LC_THREAD bytes to the corefile's Mach-O load commands,
+/// specifying the threads, the register sets ("flavors") within those threads,
+/// and all of the registers within those register sets.
+//===----------------------------------------------------------------------===//
+
+#ifndef YAML2MACHOCOREFILE_THREADWRITER_H
+#define YAML2MACHOCOREFILE_THREADWRITER_H
+
+#include "CoreSpec.h"
+
+#include <vector>
+
+void add_lc_threads(CoreSpec &spec,
+ std::vector<std::vector<uint8_t>> &load_commands);
+
+#endif