1 //===-- FunctionBreakpoint.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_VSCODE_FUNCTIONBREAKPOINT_H
10 #define LLDB_TOOLS_LLDB_VSCODE_FUNCTIONBREAKPOINT_H
11 
12 #include "BreakpointBase.h"
13 
14 namespace lldb_vscode {
15 
16 struct FunctionBreakpoint : public BreakpointBase {
17   std::string functionName;
18 
19   FunctionBreakpoint() = default;
20   FunctionBreakpoint(const llvm::json::Object &obj);
21 
22   // Set this breakpoint in LLDB as a new breakpoint
23   void SetBreakpoint();
24 };
25 
26 } // namespace lldb_vscode
27 
28 #endif
29