Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===-- Stoppoint.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_BREAKPOINT_STOPPOINT_H
0010 #define LLDB_BREAKPOINT_STOPPOINT_H
0011 
0012 #include "lldb/Utility/UserID.h"
0013 #include "lldb/lldb-private.h"
0014 
0015 namespace lldb_private {
0016 
0017 class Stoppoint {
0018 public:
0019   // Constructors and Destructors
0020   Stoppoint();
0021 
0022   virtual ~Stoppoint();
0023 
0024   // Methods
0025   virtual void Dump(Stream *) = 0;
0026 
0027   virtual bool IsEnabled() = 0;
0028 
0029   virtual void SetEnabled(bool enable) = 0;
0030 
0031   lldb::break_id_t GetID() const;
0032 
0033   void SetID(lldb::break_id_t bid);
0034 
0035 protected:
0036   lldb::break_id_t m_bid = LLDB_INVALID_BREAK_ID;
0037 
0038 private:
0039   // For Stoppoint only
0040   Stoppoint(const Stoppoint &) = delete;
0041   const Stoppoint &operator=(const Stoppoint &) = delete;
0042 };
0043 
0044 } // namespace lldb_private
0045 
0046 #endif // LLDB_BREAKPOINT_STOPPOINT_H