1 //===-- ExceptionBreakpoint.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 9 #ifndef LLDB_TOOLS_LLDB_DAP_EXCEPTIONBREAKPOINT_H 10 #define LLDB_TOOLS_LLDB_DAP_EXCEPTIONBREAKPOINT_H 11 12 #include "DAPForward.h" 13 #include "lldb/API/SBBreakpoint.h" 14 #include "lldb/lldb-enumerations.h" 15 #include <string> 16 #include <utility> 17 18 namespace lldb_dap { 19 20 struct ExceptionBreakpoint { 21 DAP &dap; 22 std::string filter; 23 std::string label; 24 lldb::LanguageType language; 25 bool default_value = false; 26 lldb::SBBreakpoint bp; 27 ExceptionBreakpoint(DAP &d, std::string f, std::string l, 28 lldb::LanguageType lang) 29 : dap(d), filter(std::move(f)), label(std::move(l)), language(lang), 30 bp() {} 31 32 void SetBreakpoint(); 33 void ClearBreakpoint(); 34 }; 35 36 } // namespace lldb_dap 37 38 #endif 39