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