LLDB  mainline
NativeRegisterContextWindows.cpp
Go to the documentation of this file.
1 //===-- NativeRegisterContextWindows.cpp ----------------------------------===//
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 #include "lldb/Host/HostThread.h"
12 #include "lldb/Utility/Log.h"
13 
15 #include "NativeThreadWindows.h"
16 #include "ProcessWindowsLog.h"
17 
18 using namespace lldb;
19 using namespace lldb_private;
20 
21 NativeRegisterContextWindows::NativeRegisterContextWindows(
22  NativeThreadProtocol &thread, RegisterInfoInterface *reg_info_interface_p)
23  : NativeRegisterContextRegisterInfo(thread, reg_info_interface_p) {}
24 
26  auto wthread = static_cast<NativeThreadWindows *>(&m_thread);
27  return wthread->GetHostThread().GetNativeThread().GetSystemHandle();
28 }
lldb_private::NativeThreadWindows::GetHostThread
const HostThread & GetHostThread()
Definition: NativeThreadWindows.h:53
lldb_private::HostThread::GetNativeThread
HostNativeThread & GetNativeThread()
Definition: HostThread.cpp:32
lldb_private::NativeThreadWindows
Definition: NativeThreadWindows.h:22
lldb_private::NativeThreadProtocol
Definition: NativeThreadProtocol.h:20
NativeRegisterContextWindows.h
lldb_private::RegisterInfoInterface
Definition: RegisterInfoInterface.h:21
ProcessWindowsLog.h
HostThread.h
lldb::thread_t
pthread_t thread_t
Definition: lldb-types.h:58
Log.h
lldb_private::HostNativeThreadBase::GetSystemHandle
lldb::thread_t GetSystemHandle() const
Definition: HostNativeThreadBase.cpp:23
lldb_private::NativeRegisterContextRegisterInfo
Definition: NativeRegisterContextRegisterInfo.h:18
windows.h
lldb_private::NativeRegisterContext::m_thread
NativeThreadProtocol & m_thread
Definition: NativeRegisterContext.h:176
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb
Definition: SBAddress.h:15
HostThreadWindows.h
lldb_private::NativeRegisterContextWindows::GetThreadHandle
lldb::thread_t GetThreadHandle() const
Definition: NativeRegisterContextWindows.cpp:25
NativeThreadWindows.h