Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/lldb/source/Plugins/Process/Utility/NativeRegisterContextDBReg_loongarch.h
213845 views
1
//===-- NativeRegisterContextDBReg_loongarch.h ------------------*- C++ -*-===//
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
#ifndef lldb_NativeRegisterContextDBReg_loongarch_h
10
#define lldb_NativeRegisterContextDBReg_loongarch_h
11
12
#include "Plugins/Process/Utility/NativeRegisterContextDBReg.h"
13
14
namespace lldb_private {
15
16
class NativeRegisterContextDBReg_loongarch : public NativeRegisterContextDBReg {
17
public:
18
NativeRegisterContextDBReg_loongarch()
19
: NativeRegisterContextDBReg(/*enable_bit=*/0x10U) {}
20
21
private:
22
uint32_t GetWatchpointSize(uint32_t wp_index) override;
23
24
std::optional<WatchpointDetails>
25
AdjustWatchpoint(const WatchpointDetails &details) override;
26
27
uint32_t MakeBreakControlValue(size_t size) override;
28
29
uint32_t MakeWatchControlValue(size_t size, uint32_t watch_flags) override;
30
};
31
32
} // namespace lldb_private
33
34
#endif // #ifndef lldb_NativeRegisterContextDBReg_loongarch_h
35
36