| 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-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLDB_TOOLS_LLDB_DAP_COMMANDPLUGINS_H |
| 10 | #define LLDB_TOOLS_LLDB_DAP_COMMANDPLUGINS_H |
| 11 | |
| 12 | #include "DAP.h" |
| 13 | #include "lldb/API/SBCommandInterpreter.h" |
| 14 | |
| 15 | namespace lldb_dap { |
| 16 | |
| 17 | struct 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 | |
| 24 | struct 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 | |
| 31 | struct 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_dap |
| 39 | |
| 40 | #endif |
| 41 | |