Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:43

0001 //===-- SBWatchpointOptions.h -----------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_API_SBWATCHPOINTOPTIONS_H
0010 #define LLDB_API_SBWATCHPOINTOPTIONS_H
0011 
0012 #include "lldb/API/SBDefines.h"
0013 
0014 class WatchpointOptionsImpl;
0015 
0016 namespace lldb {
0017 
0018 class LLDB_API SBWatchpointOptions {
0019 public:
0020   SBWatchpointOptions();
0021 
0022   SBWatchpointOptions(const lldb::SBWatchpointOptions &rhs);
0023 
0024   ~SBWatchpointOptions();
0025 
0026   const SBWatchpointOptions &operator=(const lldb::SBWatchpointOptions &rhs);
0027 
0028   /// Stop when the watched memory region is read.
0029   void SetWatchpointTypeRead(bool read);
0030   bool GetWatchpointTypeRead() const;
0031 
0032   /// Stop when the watched memory region is written to/modified
0033   void SetWatchpointTypeWrite(lldb::WatchpointWriteType write_type);
0034   lldb::WatchpointWriteType GetWatchpointTypeWrite() const;
0035 
0036 private:
0037   // This auto_pointer is made in the constructor and is always valid.
0038   mutable std::unique_ptr<WatchpointOptionsImpl> m_opaque_up;
0039 };
0040 
0041 } // namespace lldb
0042 
0043 #endif // LLDB_API_SBWATCHPOINTOPTIONS_H