1 | //===-- EventHelper.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_EVENTHELPER_H |
10 | #define LLDB_TOOLS_LLDB_DAP_EVENTHELPER_H |
11 | |
12 | #include "DAPForward.h" |
13 | #include "llvm/Support/Error.h" |
14 | |
15 | namespace lldb_dap { |
16 | struct DAP; |
17 | |
18 | enum LaunchMethod { Launch, Attach, AttachForSuspendedLaunch }; |
19 | |
20 | /// Update capabilities based on the configured target. |
21 | void SendTargetBasedCapabilities(DAP &dap); |
22 | |
23 | void SendProcessEvent(DAP &dap, LaunchMethod launch_method); |
24 | |
25 | llvm::Error SendThreadStoppedEvent(DAP &dap, bool on_entry = false); |
26 | |
27 | void SendTerminatedEvent(DAP &dap); |
28 | |
29 | void SendStdOutStdErr(DAP &dap, lldb::SBProcess &process); |
30 | |
31 | void SendContinuedEvent(DAP &dap); |
32 | |
33 | void SendProcessExitedEvent(DAP &dap, lldb::SBProcess &process); |
34 | |
35 | } // namespace lldb_dap |
36 | |
37 | #endif |
38 | |