Stoppoint.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //===-- Stoppoint.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. #ifndef LLDB_BREAKPOINT_STOPPOINT_H
  9. #define LLDB_BREAKPOINT_STOPPOINT_H
  10. #include "lldb/Utility/UserID.h"
  11. #include "lldb/lldb-private.h"
  12. namespace lldb_private {
  13. class Stoppoint {
  14. public:
  15. // Constructors and Destructors
  16. Stoppoint();
  17. virtual ~Stoppoint();
  18. // Methods
  19. virtual void Dump(Stream *) = 0;
  20. virtual bool IsEnabled() = 0;
  21. virtual void SetEnabled(bool enable) = 0;
  22. lldb::break_id_t GetID() const;
  23. void SetID(lldb::break_id_t bid);
  24. protected:
  25. lldb::break_id_t m_bid;
  26. private:
  27. // For Stoppoint only
  28. Stoppoint(const Stoppoint &) = delete;
  29. const Stoppoint &operator=(const Stoppoint &) = delete;
  30. };
  31. } // namespace lldb_private
  32. #endif // LLDB_BREAKPOINT_STOPPOINT_H