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_DAP_FUNCTIONBREAKPOINT_H
10#define LLDB_TOOLS_LLDB_DAP_FUNCTIONBREAKPOINT_H
11
12#include "Breakpoint.h"
13#include "DAPForward.h"
14#include "Protocol/ProtocolTypes.h"
15
16namespace lldb_dap {
17
18class FunctionBreakpoint : public Breakpoint {
19public:
20 FunctionBreakpoint(DAP &dap, const protocol::FunctionBreakpoint &breakpoint);
21
22 /// Set this breakpoint in LLDB as a new breakpoint.
23 void SetBreakpoint();
24
25 llvm::StringRef GetFunctionName() const { return m_function_name; }
26
27protected:
28 std::string m_function_name;
29};
30
31} // namespace lldb_dap
32
33#endif
34

source code of lldb/tools/lldb-dap/FunctionBreakpoint.h