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
17namespace lldb_private {
18
19namespace minidump {
20
21class ThreadMinidump : public Thread {
22public:
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
31
34
35protected:
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
A plug-in interface definition class for debugging a process.
Definition: Process.h:343
This base class provides an interface to stack frames.
Definition: StackFrame.h:44
lldb::RegisterContextSP CreateRegisterContextForFrame(StackFrame *frame) override
lldb::RegisterContextSP GetRegisterContext() override
bool CalculateStopInfo() override
Ask the thread subclass to set its stop info.
llvm::ArrayRef< uint8_t > m_gpregset_data
lldb::RegisterContextSP m_thread_reg_ctx_sp
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::RegisterContext > RegisterContextSP
Definition: lldb-forward.h:394