LLDB mainline
lldb-private-interfaces.h
Go to the documentation of this file.
1//===-- lldb-private-interfaces.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_LLDB_PRIVATE_INTERFACES_H
10#define LLDB_LLDB_PRIVATE_INTERFACES_H
11
12#if defined(__cplusplus)
13
15#include "lldb/lldb-forward.h"
17#include "lldb/lldb-types.h"
18#include <memory>
19#include <set>
20
21namespace llvm {
22namespace json {
23class Object;
24class Value;
25}
26} // namespace llvm
27
28namespace lldb_private {
29typedef lldb::ABISP (*ABICreateInstance)(lldb::ProcessSP process_sp,
30 const ArchSpec &arch);
31typedef std::unique_ptr<Architecture> (*ArchitectureCreateInstance)(
32 const ArchSpec &arch);
33typedef Disassembler *(*DisassemblerCreateInstance)(const ArchSpec &arch,
34 const char *flavor);
35typedef DynamicLoader *(*DynamicLoaderCreateInstance)(Process *process,
36 bool force);
37typedef lldb::JITLoaderSP (*JITLoaderCreateInstance)(Process *process,
38 bool force);
39typedef ObjectContainer *(*ObjectContainerCreateInstance)(
40 const lldb::ModuleSP &module_sp, lldb::DataBufferSP &data_sp,
41 lldb::offset_t data_offset, const FileSpec *file, lldb::offset_t offset,
42 lldb::offset_t length);
43typedef ObjectContainer *(*ObjectContainerCreateMemoryInstance)(
44 const lldb::ModuleSP &module_sp, lldb::WritableDataBufferSP data_sp,
45 const lldb::ProcessSP &process_sp, lldb::addr_t offset);
46typedef size_t (*ObjectFileGetModuleSpecifications)(
47 const FileSpec &file, lldb::DataBufferSP &data_sp,
48 lldb::offset_t data_offset, lldb::offset_t file_offset,
49 lldb::offset_t length, ModuleSpecList &module_specs);
50typedef ObjectFile *(*ObjectFileCreateInstance)(const lldb::ModuleSP &module_sp,
51 lldb::DataBufferSP data_sp,
52 lldb::offset_t data_offset,
53 const FileSpec *file,
54 lldb::offset_t file_offset,
55 lldb::offset_t length);
56typedef ObjectFile *(*ObjectFileCreateMemoryInstance)(
57 const lldb::ModuleSP &module_sp, lldb::WritableDataBufferSP data_sp,
58 const lldb::ProcessSP &process_sp, lldb::addr_t offset);
59typedef bool (*ObjectFileSaveCore)(const lldb::ProcessSP &process_sp,
60 const FileSpec &outfile,
61 lldb::SaveCoreStyle &core_style,
62 Status &error);
63typedef EmulateInstruction *(*EmulateInstructionCreateInstance)(
64 const ArchSpec &arch, InstructionType inst_type);
65typedef OperatingSystem *(*OperatingSystemCreateInstance)(Process *process,
66 bool force);
67typedef Language *(*LanguageCreateInstance)(lldb::LanguageType language);
68typedef LanguageRuntime *(*LanguageRuntimeCreateInstance)(
69 Process *process, lldb::LanguageType language);
70typedef lldb::CommandObjectSP (*LanguageRuntimeGetCommandObject)(
71 CommandInterpreter &interpreter);
72typedef lldb::BreakpointPreconditionSP (
73 *LanguageRuntimeGetExceptionPrecondition)(lldb::LanguageType language,
74 bool throw_bp);
75typedef lldb::StructuredDataPluginSP (*StructuredDataPluginCreateInstance)(
76 Process &process);
77typedef Status (*StructuredDataFilterLaunchInfo)(ProcessLaunchInfo &launch_info,
78 Target *target);
79typedef SystemRuntime *(*SystemRuntimeCreateInstance)(Process *process);
80typedef lldb::PlatformSP (*PlatformCreateInstance)(bool force,
81 const ArchSpec *arch);
82typedef lldb::ProcessSP (*ProcessCreateInstance)(
83 lldb::TargetSP target_sp, lldb::ListenerSP listener_sp,
84 const FileSpec *crash_file_path, bool can_connect);
85typedef lldb::ScriptInterpreterSP (*ScriptInterpreterCreateInstance)(
86 Debugger &debugger);
87typedef SymbolFile *(*SymbolFileCreateInstance)(lldb::ObjectFileSP objfile_sp);
88typedef SymbolVendor *(*SymbolVendorCreateInstance)(
89 const lldb::ModuleSP &module_sp,
91 *feedback_strm); // Module can be NULL for default system symbol vendor
92typedef bool (*BreakpointHitCallback)(void *baton,
93 StoppointCallbackContext *context,
94 lldb::user_id_t break_id,
95 lldb::user_id_t break_loc_id);
96typedef bool (*WatchpointHitCallback)(void *baton,
97 StoppointCallbackContext *context,
98 lldb::user_id_t watch_id);
99typedef bool (*ThreadPlanShouldStopHereCallback)(
100 ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation,
101 Status &status, void *baton);
102typedef lldb::ThreadPlanSP (*ThreadPlanStepFromHereCallback)(
103 ThreadPlan *current_plan, Flags &flags, lldb::FrameComparison operation,
104 Status &status, void *baton);
105typedef UnwindAssembly *(*UnwindAssemblyCreateInstance)(const ArchSpec &arch);
106typedef lldb::MemoryHistorySP (*MemoryHistoryCreateInstance)(
107 const lldb::ProcessSP &process_sp);
108typedef lldb::InstrumentationRuntimeType (*InstrumentationRuntimeGetType)();
109typedef lldb::InstrumentationRuntimeSP (*InstrumentationRuntimeCreateInstance)(
110 const lldb::ProcessSP &process_sp);
111typedef lldb::TypeSystemSP (*TypeSystemCreateInstance)(
112 lldb::LanguageType language, Module *module, Target *target);
113typedef lldb::REPLSP (*REPLCreateInstance)(Status &error,
114 lldb::LanguageType language,
115 Debugger *debugger, Target *target,
116 const char *repl_options);
117typedef int (*ComparisonFunction)(const void *, const void *);
118typedef void (*DebuggerInitializeCallback)(Debugger &debugger);
119/// Trace
120/// \{
121typedef llvm::Expected<lldb::TraceSP> (*TraceCreateInstanceFromBundle)(
122 const llvm::json::Value &trace_bundle_description,
123 llvm::StringRef session_file_dir, lldb_private::Debugger &debugger);
124typedef llvm::Expected<lldb::TraceSP> (*TraceCreateInstanceForLiveProcess)(
125 Process &process);
126typedef llvm::Expected<lldb::TraceExporterUP> (*TraceExporterCreateInstance)();
127typedef lldb::CommandObjectSP (*ThreadTraceExportCommandCreator)(
128 CommandInterpreter &interpreter);
129/// \}
130} // namespace lldb_private
131
132#endif // #if defined(__cplusplus)
133
134#endif // LLDB_LLDB_PRIVATE_INTERFACES_H
static llvm::raw_ostream & error(Stream &strm)
A class to manage flag bits.
Definition: Debugger.h:77
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
A class that represents a running process on the host machine.
InstructionType
Instruction types.
uint64_t offset_t
Definition: lldb-types.h:87
FrameComparison
This is the return value for frame comparisons.
LanguageType
Programming language type.
InstrumentationRuntimeType
uint64_t user_id_t
Definition: lldb-types.h:84
uint64_t addr_t
Definition: lldb-types.h:83
Definition: Debugger.h:51