2018-08-16 17:59:38 +00:00
|
|
|
//===-- FunctionBreakpoint.h ------------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 08:50:56 +00:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2018-08-16 17:59:38 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2023-10-19 09:48:54 -07:00
|
|
|
#ifndef LLDB_TOOLS_LLDB_DAP_FUNCTIONBREAKPOINT_H
|
|
|
|
#define LLDB_TOOLS_LLDB_DAP_FUNCTIONBREAKPOINT_H
|
2018-08-16 17:59:38 +00:00
|
|
|
|
2024-02-13 11:38:02 -05:00
|
|
|
#include "Breakpoint.h"
|
2024-11-08 13:36:25 -08:00
|
|
|
#include "DAPForward.h"
|
2018-08-16 17:59:38 +00:00
|
|
|
|
2023-10-19 09:48:54 -07:00
|
|
|
namespace lldb_dap {
|
2018-08-16 17:59:38 +00:00
|
|
|
|
2024-02-13 11:38:02 -05:00
|
|
|
struct FunctionBreakpoint : public Breakpoint {
|
2018-08-16 17:59:38 +00:00
|
|
|
std::string functionName;
|
|
|
|
|
2024-11-08 13:36:25 -08:00
|
|
|
FunctionBreakpoint(DAP &dap, const llvm::json::Object &obj);
|
2018-08-16 17:59:38 +00:00
|
|
|
|
|
|
|
// Set this breakpoint in LLDB as a new breakpoint
|
|
|
|
void SetBreakpoint();
|
|
|
|
};
|
|
|
|
|
2023-10-19 09:48:54 -07:00
|
|
|
} // namespace lldb_dap
|
2018-08-16 17:59:38 +00:00
|
|
|
|
|
|
|
#endif
|