xref: /openbsd-src/gnu/llvm/lldb/tools/lldb-vscode/FunctionBreakpoint.h (revision dda2819751e49c83612958492e38917049128b41)
1061da546Spatrick //===-- FunctionBreakpoint.h ------------------------------------*- C++ -*-===//
2061da546Spatrick //
3061da546Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4061da546Spatrick // See https://llvm.org/LICENSE.txt for license information.
5061da546Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6061da546Spatrick //
7061da546Spatrick //===----------------------------------------------------------------------===//
8061da546Spatrick 
9*dda28197Spatrick #ifndef LLDB_TOOLS_LLDB_VSCODE_FUNCTIONBREAKPOINT_H
10*dda28197Spatrick #define LLDB_TOOLS_LLDB_VSCODE_FUNCTIONBREAKPOINT_H
11061da546Spatrick 
12061da546Spatrick #include "BreakpointBase.h"
13061da546Spatrick 
14061da546Spatrick namespace lldb_vscode {
15061da546Spatrick 
16061da546Spatrick struct FunctionBreakpoint : public BreakpointBase {
17061da546Spatrick   std::string functionName;
18061da546Spatrick 
19061da546Spatrick   FunctionBreakpoint() = default;
20061da546Spatrick   FunctionBreakpoint(const llvm::json::Object &obj);
21061da546Spatrick 
22061da546Spatrick   // Set this breakpoint in LLDB as a new breakpoint
23061da546Spatrick   void SetBreakpoint();
24061da546Spatrick };
25061da546Spatrick 
26061da546Spatrick } // namespace lldb_vscode
27061da546Spatrick 
28061da546Spatrick #endif
29