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
12#include "lldb/Utility/Log.h"
13
15#include "NativeThreadWindows.h"
16#include "ProcessWindowsLog.h"
17
18using namespace lldb;
19using namespace lldb_private;
20
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}
HostNativeThread & GetNativeThread()
Definition: HostThread.cpp:32
NativeRegisterContextWindows(NativeThreadProtocol &native_thread, RegisterInfoInterface *reg_info_interface_p)
RegisterInfo interface to patch RegisterInfo structure for archs.
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
Definition: SBAddress.h:15
pthread_t thread_t
Definition: lldb-types.h:58