blob: 703f41f3c298b0034e5e491d746b09a10361f6b3 [file]
//===-- NativeRegisterContextDBReg_loongarch.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_UTILITY_NATIVEREGISTERCONTEXTDBREG_LOONGARCH_H
#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_NATIVEREGISTERCONTEXTDBREG_LOONGARCH_H
#include "Plugins/Process/Utility/NativeRegisterContextDBReg.h"
namespace lldb_private {
class NativeRegisterContextDBReg_loongarch : public NativeRegisterContextDBReg {
public:
NativeRegisterContextDBReg_loongarch()
: NativeRegisterContextDBReg(/*enable_bit=*/0x10U) {}
private:
uint32_t GetWatchpointSize(uint32_t wp_index) override;
std::optional<WatchpointDetails>
AdjustWatchpoint(const WatchpointDetails &details) override;
uint32_t MakeBreakControlValue(size_t size) override;
uint32_t MakeWatchControlValue(size_t size, uint32_t watch_flags) override;
};
} // namespace lldb_private
#endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_NATIVEREGISTERCONTEXTDBREG_LOONGARCH_H