LLDB mainline
TargetThreadWindows.h
Go to the documentation of this file.
1//===-- TargetThreadWindows.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 liblldb_Plugins_Process_Windows_TargetThreadWindows_H_
10#define liblldb_Plugins_Process_Windows_TargetThreadWindows_H_
11
13#include "lldb/Target/Thread.h"
14#include "lldb/lldb-forward.h"
15
17
18namespace lldb_private {
19class ProcessWindows;
20class StackFrame;
21
23public:
24 TargetThreadWindows(ProcessWindows &process, const HostThread &thread);
25 virtual ~TargetThreadWindows();
26
27 // lldb_private::Thread overrides
28 void RefreshStateAfterStop() override;
29 void WillResume(lldb::StateType resume_state) override;
30 void DidStop() override;
34 bool CalculateStopInfo() override;
35 const char *GetName() override;
36
37 /// Exposes this thread's TEB address under the "teb_address" key, so that
38 /// language runtimes can resolve thread-local storage.
40
42
44
45private:
48 std::string m_name;
49};
50} // namespace lldb_private
51
52#endif
This base class provides an interface to stack frames.
Definition StackFrame.h:44
An error handling class.
Definition Status.h:118
std::shared_ptr< Object > ObjectSP
bool CalculateStopInfo() override
Ask the thread subclass to set its stop info.
TargetThreadWindows(ProcessWindows &process, const HostThread &thread)
lldb_private::StructuredData::ObjectSP FetchThreadExtendedInfo() override
Exposes this thread's TEB address under the "teb_address" key, so that language runtimes can resolve ...
lldb::RegisterContextSP GetRegisterContext() override
lldb::RegisterContextSP CreateRegisterContextForFrame(StackFrame *frame) override
void WillResume(lldb::StateType resume_state) override
lldb::RegisterContextSP m_thread_reg_ctx_sp
friend class StackFrame
Definition Thread.h:1371
A class that represents a running process on the host machine.
StateType
Process and Thread States.
std::shared_ptr< lldb_private::RegisterContext > RegisterContextSP