59 lines · cpp
1//===-- NativeThreadAIX.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-exception6//7//===----------------------------------------------------------------------===//8 9#include "NativeThreadAIX.h"10#include "NativeProcessAIX.h"11#include "lldb/Utility/State.h"12 13using namespace lldb;14using namespace lldb_private;15using namespace lldb_private::process_aix;16 17NativeThreadAIX::NativeThreadAIX(NativeProcessAIX &process, lldb::tid_t tid)18 : NativeThreadProtocol(process, tid), m_state(StateType::eStateInvalid) {}19 20std::string NativeThreadAIX::GetName() { return ""; }21 22lldb::StateType NativeThreadAIX::GetState() { return m_state; }23 24bool NativeThreadAIX::GetStopReason(ThreadStopInfo &stop_info,25 std::string &description) {26 return false;27}28 29Status NativeThreadAIX::SetWatchpoint(lldb::addr_t addr, size_t size,30 uint32_t watch_flags, bool hardware) {31 return Status("Unable to Set hardware watchpoint.");32}33 34Status NativeThreadAIX::RemoveWatchpoint(lldb::addr_t addr) {35 return Status("Clearing hardware watchpoint failed.");36}37 38Status NativeThreadAIX::SetHardwareBreakpoint(lldb::addr_t addr, size_t size) {39 return Status("Unable to set hardware breakpoint.");40}41 42Status NativeThreadAIX::RemoveHardwareBreakpoint(lldb::addr_t addr) {43 return Status("Clearing hardware breakpoint failed.");44}45 46NativeProcessAIX &NativeThreadAIX::GetProcess() {47 return static_cast<NativeProcessAIX &>(m_process);48}49 50const NativeProcessAIX &NativeThreadAIX::GetProcess() const {51 return static_cast<const NativeProcessAIX &>(m_process);52}53 54llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>55NativeThreadAIX::GetSiginfo() const {56 return llvm::createStringError(llvm::inconvertibleErrorCode(),57 "Not implemented");58}59