blob: 8c46b3c93fec6e4e573c544828e483bb0fa25692 [file] [log] [blame]
Zachary Turner119767d2014-11-17 17:46:43 +00001//===-- TargetThreadWindows.h -----------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef liblldb_Plugins_Process_Windows_TargetThreadWindows_H_
11#define liblldb_Plugins_Process_Windows_TargetThreadWindows_H_
12
13#include "ForwardDecl.h"
14#include "lldb/lldb-forward.h"
15#include "lldb/Host/HostThread.h"
16#include "lldb/Target/Thread.h"
17class ProcessWindows;
18
19namespace lldb_private
20{
21
22class HostThread;
23class StackFrame;
24
25class TargetThreadWindows : public lldb_private::Thread
26{
27 public:
28 TargetThreadWindows(ProcessWindows &process, const HostThread &thread);
29 virtual ~TargetThreadWindows();
30
Zachary Turner17f383d2014-11-20 22:47:32 +000031 // lldb_private::Thread overrides
32 void RefreshStateAfterStop() override;
33 void WillResume(lldb::StateType resume_state) override;
34 void DidStop() override;
35 lldb::RegisterContextSP GetRegisterContext() override;
36 lldb::RegisterContextSP CreateRegisterContextForFrame(StackFrame *frame) override;
37 bool CalculateStopInfo() override;
38 Unwind *GetUnwinder() override;
Zachary Turner119767d2014-11-17 17:46:43 +000039
40 bool DoResume();
41
Zachary Turner17f383d2014-11-20 22:47:32 +000042 HostThread
43 GetHostThread() const
44 {
45 return m_host_thread;
46 }
47
Zachary Turner119767d2014-11-17 17:46:43 +000048 private:
Zachary Turner17f383d2014-11-20 22:47:32 +000049 lldb::RegisterContextSP CreateRegisterContextForFrameIndex(uint32_t idx);
50
Zachary Turner119767d2014-11-17 17:46:43 +000051 lldb::StackFrameUP m_stack_frame;
52
53 HostThread m_host_thread;
54};
55}
56
57#endif