================ @@ -0,0 +1,44 @@ +//===-- SBWatchpointOptions.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_API_SBWATCHPOINTOPTIONS_H +#define LLDB_API_SBWATCHPOINTOPTIONS_H + +#include "lldb/API/SBDefines.h" + +class WatchpointOptionsImpl; + +namespace lldb { + +class LLDB_API SBWatchpointOptions { +public: + SBWatchpointOptions(); + + SBWatchpointOptions(const lldb::SBWatchpointOptions &rhs); + + ~SBWatchpointOptions(); + + const SBWatchpointOptions &operator=(const lldb::SBWatchpointOptions &rhs); + + void SetWatchpointTypeRead(bool read); + bool GetWatchpointTypeRead() const; + + void SetWatchpointTypeWrite(bool write); + bool GetWatchpointTypeWrite() const; + + void SetWatchpointTypeModify(bool modify); + bool GetWatchpointTypeModify() const; ---------------- jasonmolenda wrote:
This is a good idea. I was a unhappy with "read", "write", and "modify" as if they were all independently selectable values or something, but hadn't thought of a better way of expressing write/modify as a type of write watchpoint. https://github.com/llvm/llvm-project/pull/66308 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits