aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.cpp
blob: effe6df36b5765cf63412d4f25db1bd27816eec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===-- NativeRegisterContextWindows.cpp ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "lldb/Host/HostThread.h"
#include "lldb/Host/windows/HostThreadWindows.h"
#include "lldb/Host/windows/windows.h"
#include "lldb/Utility/Log.h"

#include "NativeRegisterContextWindows.h"
#include "NativeThreadWindows.h"
#include "ProcessWindowsLog.h"

using namespace lldb;
using namespace lldb_private;

lldb::thread_t NativeRegisterContextWindows::GetThreadHandle() const {
  auto wthread = static_cast<NativeThreadWindows *>(&m_thread);
  return wthread->GetHostThread().GetNativeThread().GetSystemHandle();
}