| //===-- ExceptionBreakpoint.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_TOOLS_LLDB_DAP_EXCEPTIONBREAKPOINT_H |
| #define LLDB_TOOLS_LLDB_DAP_EXCEPTIONBREAKPOINT_H |
| #include "lldb/API/SBBreakpoint.h" |
| #include "lldb/lldb-enumerations.h" |
| #include "llvm/ADT/StringRef.h" |
| class ExceptionBreakpoint { |
| ExceptionBreakpoint(DAP &d, std::string f, std::string l, |
| : m_dap(d), m_filter(std::move(f)), m_label(std::move(l)), |
| m_language(lang), m_bp() {} |
| lldb::break_id_t GetID() const { return m_bp.GetID(); } |
| llvm::StringRef GetFilter() const { return m_filter; } |
| llvm::StringRef GetLabel() const { return m_label; } |
| static constexpr bool kDefaultValue = false; |
| lldb::LanguageType m_language; |