1*80814287SRaphael Isemann //===-- NativeRegisterContextWindows.cpp ----------------------------------===// 25146a9eaSAaron Smith // 35146a9eaSAaron Smith // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 45146a9eaSAaron Smith // See https://llvm.org/LICENSE.txt for license information. 55146a9eaSAaron Smith // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 65146a9eaSAaron Smith // 75146a9eaSAaron Smith //===----------------------------------------------------------------------===// 85146a9eaSAaron Smith 95146a9eaSAaron Smith #include "lldb/Host/HostThread.h" 102e8b5755SSaleem Abdulrasool #include "lldb/Host/windows/HostThreadWindows.h" 115146a9eaSAaron Smith #include "lldb/Host/windows/windows.h" 125146a9eaSAaron Smith #include "lldb/Utility/Log.h" 135146a9eaSAaron Smith 145146a9eaSAaron Smith #include "NativeRegisterContextWindows.h" 155146a9eaSAaron Smith #include "NativeThreadWindows.h" 165146a9eaSAaron Smith #include "ProcessWindowsLog.h" 175146a9eaSAaron Smith 185146a9eaSAaron Smith using namespace lldb; 195146a9eaSAaron Smith using namespace lldb_private; 205146a9eaSAaron Smith NativeRegisterContextWindows(NativeThreadProtocol & thread,RegisterInfoInterface * reg_info_interface_p)215146a9eaSAaron SmithNativeRegisterContextWindows::NativeRegisterContextWindows( 225146a9eaSAaron Smith NativeThreadProtocol &thread, RegisterInfoInterface *reg_info_interface_p) 235146a9eaSAaron Smith : NativeRegisterContextRegisterInfo(thread, reg_info_interface_p) {} 245146a9eaSAaron Smith GetThreadHandle() const255146a9eaSAaron Smithlldb::thread_t NativeRegisterContextWindows::GetThreadHandle() const { 265146a9eaSAaron Smith auto wthread = static_cast<NativeThreadWindows *>(&m_thread); 275146a9eaSAaron Smith return wthread->GetHostThread().GetNativeThread().GetSystemHandle(); 285146a9eaSAaron Smith } 29