LLDB mainline
NativeThreadAIX.cpp
Go to the documentation of this file.
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
13using namespace lldb;
14using namespace lldb_private;
15using namespace lldb_private::process_aix;
16
20 NativeRegisterContextAIX::CreateHostNativeRegisterContextAIX(
21 process.GetArchitecture(), *this)) {}
22
23std::string NativeThreadAIX::GetName() { return ""; }
24
26
28 std::string &description) {
29 return false;
30}
31
33 uint32_t watch_flags, bool hardware) {
34 return Status("Unable to Set hardware watchpoint.");
35}
36
38 return Status("Clearing hardware watchpoint failed.");
39}
40
42 return Status("Unable to set hardware breakpoint.");
43}
44
46 return Status("Clearing hardware breakpoint failed.");
47}
48
52
54 return static_cast<const NativeProcessAIX &>(m_process);
55}
56
57llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
59 return llvm::createStringError(llvm::inconvertibleErrorCode(),
60 "Not implemented");
61}
NativeThreadProtocol(NativeProcessProtocol &process, lldb::tid_t tid)
An error handling class.
Definition Status.h:118
std::unique_ptr< NativeRegisterContextAIX > m_reg_context_up
Status SetWatchpoint(lldb::addr_t addr, size_t size, uint32_t watch_flags, bool hardware) override
bool GetStopReason(ThreadStopInfo &stop_info, std::string &description) override
Status SetHardwareBreakpoint(lldb::addr_t addr, size_t size) override
llvm::Expected< std::unique_ptr< llvm::MemoryBuffer > > GetSiginfo() const override
NativeThreadAIX(NativeProcessAIX &process, lldb::tid_t tid)
Status RemoveWatchpoint(lldb::addr_t addr) override
Status RemoveHardwareBreakpoint(lldb::addr_t addr) override
A class that represents a running process on the host machine.
StateType
Process and Thread States.
uint64_t addr_t
Definition lldb-types.h:80
uint64_t tid_t
Definition lldb-types.h:84