41 lines · c
1//===-- CommandPlugins.h --------------------------------------------------===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_TOOLS_LLDB_DAP_COMMANDPLUGINS_H10#define LLDB_TOOLS_LLDB_DAP_COMMANDPLUGINS_H11 12#include "DAP.h"13#include "lldb/API/SBCommandInterpreter.h"14 15namespace lldb_dap {16 17struct StartDebuggingCommand : public lldb::SBCommandPluginInterface {18 DAP &dap;19 explicit StartDebuggingCommand(DAP &d) : dap(d) {};20 bool DoExecute(lldb::SBDebugger debugger, char **command,21 lldb::SBCommandReturnObject &result) override;22};23 24struct ReplModeCommand : public lldb::SBCommandPluginInterface {25 DAP &dap;26 explicit ReplModeCommand(DAP &d) : dap(d) {};27 bool DoExecute(lldb::SBDebugger debugger, char **command,28 lldb::SBCommandReturnObject &result) override;29};30 31struct SendEventCommand : public lldb::SBCommandPluginInterface {32 DAP &dap;33 explicit SendEventCommand(DAP &d) : dap(d) {};34 bool DoExecute(lldb::SBDebugger debugger, char **command,35 lldb::SBCommandReturnObject &result) override;36};37 38} // namespace lldb_dap39 40#endif41