1//===-- Breakpoint.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_BREAKPOINT_H
10#define LLDB_TOOLS_LLDB_DAP_BREAKPOINT_H
11
12#include "BreakpointBase.h"
13
14namespace lldb_dap {
15
16struct Breakpoint : public BreakpointBase {
17 // The LLDB breakpoint associated wit this source breakpoint
18 lldb::SBBreakpoint bp;
19
20 Breakpoint() = default;
21 Breakpoint(const llvm::json::Object &obj) : BreakpointBase(obj){};
22 Breakpoint(lldb::SBBreakpoint bp) : bp(bp) {}
23
24 void SetCondition() override;
25 void SetHitCondition() override;
26 void CreateJsonObject(llvm::json::Object &object) override;
27
28 bool MatchesName(const char *name);
29 void SetBreakpoint();
30};
31} // namespace lldb_dap
32
33#endif
34

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