| //===-- ExceptionBreakpoint.cpp ---------------------------------*- 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 |
| //===----------------------------------------------------------------------===// |
| #include "ExceptionBreakpoint.h" |
| void ExceptionBreakpoint::SetBreakpoint() { |
| bool catch_value = filter.find("_catch") != std::string::npos; |
| bool throw_value = filter.find("_throw") != std::string::npos; |
| bp = g_vsc.target.BreakpointCreateForException(language, catch_value, |
| void ExceptionBreakpoint::ClearBreakpoint() { |
| g_vsc.target.BreakpointDelete(bp.GetID()); |
| bp = lldb::SBBreakpoint(); |
| } // namespace lldb_vscode |