summaryrefslogtreecommitdiff
path: root/tools/lldb-vscode/ExceptionBreakpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lldb-vscode/ExceptionBreakpoint.cpp')
-rw-r--r--tools/lldb-vscode/ExceptionBreakpoint.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/lldb-vscode/ExceptionBreakpoint.cpp b/tools/lldb-vscode/ExceptionBreakpoint.cpp
deleted file mode 100644
index 96bc0930e429..000000000000
--- a/tools/lldb-vscode/ExceptionBreakpoint.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-//===-- ExceptionBreakpoint.cpp ---------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "ExceptionBreakpoint.h"
-#include "VSCode.h"
-
-namespace lldb_vscode {
-
-void ExceptionBreakpoint::SetBreakpoint() {
- if (bp.IsValid())
- return;
- 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,
- throw_value);
-}
-
-void ExceptionBreakpoint::ClearBreakpoint() {
- if (!bp.IsValid())
- return;
- g_vsc.target.BreakpointDelete(bp.GetID());
- bp = lldb::SBBreakpoint();
-}
-
-} // namespace lldb_vscode
-