1 //===-- ThreadMinidump.h ---------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_ThreadMinidump_h_
10 #define liblldb_ThreadMinidump_h_
12 #include "MinidumpTypes.h"
14 #include "lldb/Target/Thread.h"
17 namespace lldb_private {
21 class ThreadMinidump : public Thread {
23 ThreadMinidump(Process &process, const minidump::Thread &td,
24 llvm::ArrayRef<uint8_t> gpregset_data);
26 ~ThreadMinidump() override;
28 void RefreshStateAfterStop() override;
30 lldb::RegisterContextSP GetRegisterContext() override;
32 lldb::RegisterContextSP
33 CreateRegisterContextForFrame(StackFrame *frame) override;
36 lldb::RegisterContextSP m_thread_reg_ctx_sp;
37 llvm::ArrayRef<uint8_t> m_gpregset_data;
39 bool CalculateStopInfo() override;
42 } // namespace minidump
43 } // namespace lldb_private
45 #endif // liblldb_ThreadMinidump_h_