LLDB  mainline
ThreadMinidump.h
Go to the documentation of this file.
1 //===-- ThreadMinidump.h ---------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_THREADMINIDUMP_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_THREADMINIDUMP_H
11 
12 #include "MinidumpTypes.h"
13 
14 #include "lldb/Target/Thread.h"
15 
16 
17 namespace lldb_private {
18 
19 namespace minidump {
20 
21 class ThreadMinidump : public Thread {
22 public:
23  ThreadMinidump(Process &process, const minidump::Thread &td,
24  llvm::ArrayRef<uint8_t> gpregset_data);
25 
26  ~ThreadMinidump() override;
27 
28  void RefreshStateAfterStop() override;
29 
30  lldb::RegisterContextSP GetRegisterContext() override;
31 
32  lldb::RegisterContextSP
34 
35 protected:
36  lldb::RegisterContextSP m_thread_reg_ctx_sp;
37  llvm::ArrayRef<uint8_t> m_gpregset_data;
38 
39  bool CalculateStopInfo() override;
40 };
41 
42 } // namespace minidump
43 } // namespace lldb_private
44 
45 #endif // LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_THREADMINIDUMP_H
lldb_private::minidump::ThreadMinidump
Definition: ThreadMinidump.h:21
lldb_private::minidump::ThreadMinidump::CreateRegisterContextForFrame
lldb::RegisterContextSP CreateRegisterContextForFrame(StackFrame *frame) override
Definition: ThreadMinidump.cpp:53
MinidumpTypes.h
lldb_private::Process
Definition: Process.h:341
lldb_private::minidump::ThreadMinidump::GetRegisterContext
lldb::RegisterContextSP GetRegisterContext() override
Definition: ThreadMinidump.cpp:45
lldb_private::minidump::ThreadMinidump::RefreshStateAfterStop
void RefreshStateAfterStop() override
Definition: ThreadMinidump.cpp:43
lldb_private::Thread
Definition: Thread.h:60
lldb_private::minidump::ThreadMinidump::CalculateStopInfo
bool CalculateStopInfo() override
Definition: ThreadMinidump.cpp:118
Thread.h
lldb_private::minidump::ThreadMinidump::m_thread_reg_ctx_sp
lldb::RegisterContextSP m_thread_reg_ctx_sp
Definition: ThreadMinidump.h:36
lldb_private::minidump::ThreadMinidump::m_gpregset_data
llvm::ArrayRef< uint8_t > m_gpregset_data
Definition: ThreadMinidump.h:37
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::minidump::ThreadMinidump::~ThreadMinidump
~ThreadMinidump() override
lldb_private::StackFrame
Definition: StackFrame.h:40
lldb_private::minidump::ThreadMinidump::ThreadMinidump
ThreadMinidump(Process &process, const minidump::Thread &td, llvm::ArrayRef< uint8_t > gpregset_data)
Definition: ThreadMinidump.cpp:36