blob: e32d3db2c5fa28dd5c43e09f03775ee92b4f6bfb (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
//===-- NativeThreadAIX.h ----------------------------------- -*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
#ifndef LLDB_SOURCE_PLUGINS_PROCESS_AIX_NATIVETHREADAIX_H_
#define LLDB_SOURCE_PLUGINS_PROCESS_AIX_NATIVETHREADAIX_H_
#include "lldb/Host/common/NativeThreadProtocol.h"
namespace lldb_private::process_aix {
class NativeProcessAIX;
class NativeThreadAIX : public NativeThreadProtocol {
friend class NativeProcessAIX;
public:
NativeThreadAIX(NativeProcessAIX &process, lldb::tid_t tid);
// NativeThreadProtocol Interface
std::string GetName() override;
lldb::StateType GetState() override;
bool GetStopReason(ThreadStopInfo &stop_info,
std::string &description) override;
Status SetWatchpoint(lldb::addr_t addr, size_t size, uint32_t watch_flags,
bool hardware) override;
Status RemoveWatchpoint(lldb::addr_t addr) override;
Status SetHardwareBreakpoint(lldb::addr_t addr, size_t size) override;
Status RemoveHardwareBreakpoint(lldb::addr_t addr) override;
NativeProcessAIX &GetProcess();
const NativeProcessAIX &GetProcess() const;
llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
GetSiginfo() const override;
private:
lldb::StateType m_state;
};
} // namespace lldb_private::process_aix
#endif // #ifndef LLDB_SOURCE_PLUGINS_PROCESS_AIX_NATIVETHREADAIX_H_
|