LLDB mainline
CommandObjectTrace.h
Go to the documentation of this file.
1//===-- CommandObjectTrace.h ------------------------------------*- C++ -*-===//
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_SOURCE_COMMANDS_COMMANDOBJECTTRACE_H
10#define LLDB_SOURCE_COMMANDS_COMMANDOBJECTTRACE_H
11
13
14namespace lldb_private {
15
17public:
19
21};
22
23/// This class works by delegating the logic to the actual trace plug-in that
24/// can support the current process.
26public:
27 CommandObjectTraceProxy(bool live_debug_session_only,
28 CommandInterpreter &interpreter, const char *name,
29 const char *help = nullptr,
30 const char *syntax = nullptr, uint32_t flags = 0)
31 : CommandObjectProxy(interpreter, name, help, syntax, flags),
32 m_live_debug_session_only(live_debug_session_only) {}
33
34protected:
36
37 llvm::Expected<lldb::CommandObjectSP> DoGetProxyCommandObject();
38
40
41private:
42 llvm::StringRef GetUnsupportedError() override { return m_delegate_error; }
43
46 std::string m_delegate_error;
47};
48
49} // namespace lldb_private
50
51#endif // LLDB_SOURCE_COMMANDS_COMMANDOBJECTTRACE_H
This class works by delegating the logic to the actual trace plug-in that can support the current pro...
llvm::StringRef GetUnsupportedError() override
llvm::Expected< lldb::CommandObjectSP > DoGetProxyCommandObject()
CommandObject * GetProxyCommandObject() override
CommandObjectTraceProxy(bool live_debug_session_only, CommandInterpreter &interpreter, const char *name, const char *help=nullptr, const char *syntax=nullptr, uint32_t flags=0)
virtual lldb::CommandObjectSP GetDelegateCommand(Trace &trace)=0
A plug-in interface definition class for trace information.
Definition: Trace.h:48
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::CommandObject > CommandObjectSP
Definition: lldb-forward.h:330