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