summaryrefslogtreecommitdiff
path: root/tools/lldb-vscode/SourceBreakpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lldb-vscode/SourceBreakpoint.cpp')
-rw-r--r--tools/lldb-vscode/SourceBreakpoint.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/tools/lldb-vscode/SourceBreakpoint.cpp b/tools/lldb-vscode/SourceBreakpoint.cpp
deleted file mode 100644
index f2a286c9eca2..000000000000
--- a/tools/lldb-vscode/SourceBreakpoint.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-//===-- SourceBreakpoint.cpp ------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "SourceBreakpoint.h"
-#include "VSCode.h"
-
-namespace lldb_vscode {
-
-SourceBreakpoint::SourceBreakpoint(const llvm::json::Object &obj)
- : BreakpointBase(obj), line(GetUnsigned(obj, "line", 0)),
- column(GetUnsigned(obj, "column", 0)) {}
-
-void SourceBreakpoint::SetBreakpoint(const llvm::StringRef source_path) {
- bp = g_vsc.target.BreakpointCreateByLocation(source_path.str().c_str(), line);
- if (!condition.empty())
- SetCondition();
- if (!hitCondition.empty())
- SetHitCondition();
-}
-
-} // namespace lldb_vscode