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

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