1 //===-- lldb-forward.h ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_lldb_forward_h_
11 #define LLDB_lldb_forward_h_
13 #if defined(__cplusplus)
15 #include "lldb/Utility/SharingPtr.h"
17 //----------------------------------------------------------------------
18 // lldb forward declarations
19 //----------------------------------------------------------------------
20 namespace lldb_private {
26 class AddressResolver;
30 class ASTResultSynthesizer;
31 class ASTStructExtractor;
36 class BreakpointIDList;
38 class BreakpointLocation;
39 class BreakpointLocationCollection;
40 class BreakpointLocationList;
41 class BreakpointOptions;
42 class BreakpointResolver;
44 class BreakpointSiteList;
45 class BroadcastEventSpec;
47 class BroadcasterManager;
48 class CPPLanguageRuntime;
49 class ClangASTContext;
50 class ClangASTImporter;
51 class ClangASTMetadata;
53 class ClangExpressionDeclMap;
54 class ClangExpressionParser;
55 class ClangExpressionVariable;
56 class ClangExpressionVariables;
57 class ClangModulesDeclVendor;
58 class ClangPersistentVariables;
59 class CommandInterpreter;
60 class CommandInterpreterRunOptions;
62 class CommandObjectMultiword;
63 class CommandReturnObject;
65 class CompactUnwindInfo;
66 struct CompilerContext;
68 class CompilerDeclContext;
73 class ConnectionFileDescriptor;
75 class CXXSyntheticChildren;
76 class DWARFCallFrameInfo;
77 class DWARFExpression;
83 class DiagnosticManager;
85 class DumpValueObjectOptions;
86 class DynamicCheckerFunctions;
89 class EmulateInstruction;
91 class EvaluateExpressionOptions;
94 class EventDataStructuredData;
95 class ExecutionContext;
96 class ExecutionContextRef;
97 class ExecutionContextRefLocker;
98 class ExecutionContextScope;
100 class ExpressionVariable;
101 class ExpressionVariableList;
102 class ExpressionTypeSystemHelper;
108 class TypeCategoryImpl;
110 class FormattersMatchCandidate;
114 class InlineFunctionInfo;
116 class InstructionList;
117 class InstrumentationRuntime;
120 class IRExecutionUnit;
124 class LanguageCategory;
125 class LanguageRuntime;
126 class MemoryRegionInfo;
136 class ModuleSpecList;
138 struct NameSearchContext;
139 class ObjCLanguageRuntime;
140 class ObjCRuntimeSyntheticProvider;
141 class ObjectContainer;
143 class OptionGroupOptions;
144 class OptionGroupPlatform;
146 class ObjectFileJITDelegate;
147 class OperatingSystem;
150 class OptionValueArch;
151 class OptionValueArgs;
152 class OptionValueArray;
153 class OptionValueBoolean;
154 class OptionValueChar;
155 class OptionValueDictionary;
156 class OptionValueEnumeration;
157 class OptionValueFileSpec;
158 class OptionValueFileSpecList;
159 class OptionValueFormat;
160 class OptionValueLanguage;
161 class OptionValueFormatEntity;
162 class OptionValuePathMappings;
163 class OptionValueProperties;
164 class OptionValueRegex;
165 class OptionValueSInt64;
166 class OptionValueString;
167 class OptionValueUInt64;
168 class OptionValueUUID;
170 class PathMappingList;
171 class FunctionCaller;
172 class PersistentExpressionState;
175 class ProcessAttachInfo;
178 class ProcessInstanceInfo;
179 class ProcessInstanceInfoList;
180 class ProcessInstanceInfoMatch;
181 class ProcessLaunchInfo;
183 struct PropertyDefinition;
184 class RegisterCheckpoint;
185 class RegisterContext;
186 class RegisterLocation;
187 class RegisterLocationList;
189 class RegularExpression;
192 class ScriptInterpreter;
193 class ScriptInterpreterLocker;
194 struct ScriptSummaryFormat;
199 class SectionLoadHistory;
200 class SectionLoadList;
203 class SourceManagerImpl;
205 class StackFrameImpl;
206 class StackFrameList;
210 class StoppointCallbackContext;
211 class StoppointLocation;
213 template <unsigned N> class StreamBuffer;
217 struct StringSummaryFormat;
218 class StructuredDataImpl;
219 class StructuredDataPlugin;
221 class TypeSummaryImpl;
222 class TypeSummaryOptions;
225 class SymbolContextList;
226 class SymbolContextScope;
227 class SymbolContextSpecifier;
229 class SymbolFileType;
232 class SyntheticChildren;
233 class SyntheticChildrenFrontEnd;
234 class TypeFilterImpl;
236 #ifndef LLDB_DISABLE_PYTHON
237 class ScriptedSyntheticChildren;
244 class TargetProperties;
246 class ThreadCollection;
249 class ThreadPlanBase;
250 class ThreadPlanRunToAddress;
251 class ThreadPlanStepInstruction;
252 class ThreadPlanStepOut;
253 class ThreadPlanStepOverBreakpoint;
254 class ThreadPlanStepRange;
255 class ThreadPlanStepThrough;
256 class ThreadPlanTracer;
261 class TypeCategoryMap;
266 class TypeMemberImpl;
267 class TypeMemberFunctionImpl;
268 class TypeEnumMemberImpl;
269 class TypeEnumMemberListImpl;
270 class TypeFormatImpl;
271 class TypeNameSpecifierImpl;
273 class TypeValidatorImpl;
277 class UnwindAssembly;
280 class UserExpression;
281 class UtilityFunction;
286 class ValueObjectChild;
287 class ValueObjectConstResult;
288 class ValueObjectConstResultChild;
289 class ValueObjectConstResultImpl;
290 class ValueObjectList;
291 class ValueObjectPrinter;
295 class WatchpointList;
296 class WatchpointOptions;
299 } // namespace lldb_private
301 //----------------------------------------------------------------------
302 // lldb forward declarations
303 //----------------------------------------------------------------------
306 typedef std::shared_ptr<lldb_private::ABI> ABISP;
307 typedef std::shared_ptr<lldb_private::Baton> BatonSP;
308 typedef std::shared_ptr<lldb_private::Block> BlockSP;
309 typedef std::shared_ptr<lldb_private::Breakpoint> BreakpointSP;
310 typedef std::weak_ptr<lldb_private::Breakpoint> BreakpointWP;
311 typedef std::shared_ptr<lldb_private::BreakpointSite> BreakpointSiteSP;
312 typedef std::weak_ptr<lldb_private::BreakpointSite> BreakpointSiteWP;
313 typedef std::shared_ptr<lldb_private::BreakpointLocation> BreakpointLocationSP;
314 typedef std::weak_ptr<lldb_private::BreakpointLocation> BreakpointLocationWP;
315 typedef std::shared_ptr<lldb_private::BreakpointResolver> BreakpointResolverSP;
316 typedef std::shared_ptr<lldb_private::Broadcaster> BroadcasterSP;
317 typedef std::shared_ptr<lldb_private::BroadcasterManager> BroadcasterManagerSP;
318 typedef std::weak_ptr<lldb_private::BroadcasterManager> BroadcasterManagerWP;
319 typedef std::unique_ptr<lldb_private::ClangASTContext> ClangASTContextUP;
320 typedef std::shared_ptr<lldb_private::ClangASTImporter> ClangASTImporterSP;
321 typedef std::unique_ptr<lldb_private::ClangModulesDeclVendor>
322 ClangModulesDeclVendorUP;
323 typedef std::unique_ptr<lldb_private::ClangPersistentVariables>
324 ClangPersistentVariablesUP;
325 typedef std::shared_ptr<lldb_private::UserExpression> UserExpressionSP;
326 typedef std::shared_ptr<lldb_private::CommandObject> CommandObjectSP;
327 typedef std::shared_ptr<lldb_private::Communication> CommunicationSP;
328 typedef std::shared_ptr<lldb_private::Connection> ConnectionSP;
329 typedef std::shared_ptr<lldb_private::CompileUnit> CompUnitSP;
330 typedef std::shared_ptr<lldb_private::DataBuffer> DataBufferSP;
331 typedef std::shared_ptr<lldb_private::DataExtractor> DataExtractorSP;
332 typedef std::shared_ptr<lldb_private::Debugger> DebuggerSP;
333 typedef std::weak_ptr<lldb_private::Debugger> DebuggerWP;
334 typedef std::shared_ptr<lldb_private::Disassembler> DisassemblerSP;
335 typedef std::unique_ptr<lldb_private::DynamicCheckerFunctions>
336 DynamicCheckerFunctionsUP;
337 typedef std::shared_ptr<lldb_private::DynamicLoader> DynamicLoaderSP;
338 typedef std::unique_ptr<lldb_private::DynamicLoader> DynamicLoaderUP;
339 typedef std::shared_ptr<lldb_private::Event> EventSP;
340 typedef std::shared_ptr<lldb_private::EventData> EventDataSP;
341 typedef std::shared_ptr<lldb_private::EventDataStructuredData>
342 EventDataStructuredDataSP;
343 typedef std::shared_ptr<lldb_private::ExecutionContextRef>
344 ExecutionContextRefSP;
345 typedef std::shared_ptr<lldb_private::ExpressionVariable> ExpressionVariableSP;
346 typedef std::shared_ptr<lldb_private::File> FileSP;
347 typedef std::shared_ptr<lldb_private::Function> FunctionSP;
348 typedef std::shared_ptr<lldb_private::FunctionCaller> FunctionCallerSP;
349 typedef std::shared_ptr<lldb_private::FuncUnwinders> FuncUnwindersSP;
350 typedef std::unique_ptr<lldb_private::GoASTContext> GoASTContextUP;
351 typedef std::shared_ptr<lldb_private::InlineFunctionInfo> InlineFunctionInfoSP;
352 typedef std::shared_ptr<lldb_private::Instruction> InstructionSP;
353 typedef std::shared_ptr<lldb_private::InstrumentationRuntime>
354 InstrumentationRuntimeSP;
355 typedef std::shared_ptr<lldb_private::IOHandler> IOHandlerSP;
356 typedef std::shared_ptr<lldb_private::IOObject> IOObjectSP;
357 typedef std::shared_ptr<lldb_private::IRExecutionUnit> IRExecutionUnitSP;
358 typedef std::shared_ptr<lldb_private::JITLoader> JITLoaderSP;
359 typedef std::unique_ptr<lldb_private::JITLoaderList> JITLoaderListUP;
360 typedef std::shared_ptr<lldb_private::LanguageRuntime> LanguageRuntimeSP;
361 typedef std::shared_ptr<lldb_private::SystemRuntime> SystemRuntimeSP;
362 typedef std::unique_ptr<lldb_private::SystemRuntime> SystemRuntimeUP;
363 typedef std::shared_ptr<lldb_private::LineTable> LineTableSP;
364 typedef std::shared_ptr<lldb_private::Listener> ListenerSP;
365 typedef std::weak_ptr<lldb_private::Listener> ListenerWP;
366 typedef std::shared_ptr<lldb_private::MemoryHistory> MemoryHistorySP;
367 typedef std::shared_ptr<lldb_private::MemoryRegionInfo> MemoryRegionInfoSP;
368 typedef std::unique_ptr<lldb_private::MemoryRegionInfo> MemoryRegionInfoUP;
369 typedef std::shared_ptr<lldb_private::Module> ModuleSP;
370 typedef std::weak_ptr<lldb_private::Module> ModuleWP;
371 typedef std::shared_ptr<lldb_private::ObjectFile> ObjectFileSP;
372 typedef std::weak_ptr<lldb_private::ObjectFile> ObjectFileWP;
373 typedef std::shared_ptr<lldb_private::ObjectFileJITDelegate>
374 ObjectFileJITDelegateSP;
375 typedef std::weak_ptr<lldb_private::ObjectFileJITDelegate>
376 ObjectFileJITDelegateWP;
377 typedef std::unique_ptr<lldb_private::OperatingSystem> OperatingSystemUP;
378 typedef std::shared_ptr<lldb_private::OptionValue> OptionValueSP;
379 typedef std::weak_ptr<lldb_private::OptionValue> OptionValueWP;
380 typedef std::shared_ptr<lldb_private::OptionValueArch> OptionValueArchSP;
381 typedef std::shared_ptr<lldb_private::OptionValueArgs> OptionValueArgsSP;
382 typedef std::shared_ptr<lldb_private::OptionValueArray> OptionValueArraySP;
383 typedef std::shared_ptr<lldb_private::OptionValueBoolean> OptionValueBooleanSP;
384 typedef std::shared_ptr<lldb_private::OptionValueDictionary>
385 OptionValueDictionarySP;
386 typedef std::shared_ptr<lldb_private::OptionValueFileSpec>
387 OptionValueFileSpecSP;
388 typedef std::shared_ptr<lldb_private::OptionValueFileSpecList>
389 OptionValueFileSpecListSP;
390 typedef std::shared_ptr<lldb_private::OptionValueFormat> OptionValueFormatSP;
391 typedef std::shared_ptr<lldb_private::OptionValuePathMappings>
392 OptionValuePathMappingsSP;
393 typedef std::shared_ptr<lldb_private::OptionValueProperties>
394 OptionValuePropertiesSP;
395 typedef std::shared_ptr<lldb_private::OptionValueRegex> OptionValueRegexSP;
396 typedef std::shared_ptr<lldb_private::OptionValueSInt64> OptionValueSInt64SP;
397 typedef std::shared_ptr<lldb_private::OptionValueString> OptionValueStringSP;
398 typedef std::shared_ptr<lldb_private::OptionValueUInt64> OptionValueUInt64SP;
399 typedef std::shared_ptr<lldb_private::OptionValueUUID> OptionValueUUIDSP;
400 typedef std::shared_ptr<lldb_private::Platform> PlatformSP;
401 typedef std::shared_ptr<lldb_private::Process> ProcessSP;
402 typedef std::shared_ptr<lldb_private::ProcessAttachInfo> ProcessAttachInfoSP;
403 typedef std::shared_ptr<lldb_private::ProcessLaunchInfo> ProcessLaunchInfoSP;
404 typedef std::weak_ptr<lldb_private::Process> ProcessWP;
405 typedef std::shared_ptr<lldb_private::Property> PropertySP;
406 typedef std::shared_ptr<lldb_private::RegisterCheckpoint> RegisterCheckpointSP;
407 typedef std::shared_ptr<lldb_private::RegisterContext> RegisterContextSP;
408 typedef std::shared_ptr<lldb_private::RegularExpression> RegularExpressionSP;
409 typedef std::shared_ptr<lldb_private::Queue> QueueSP;
410 typedef std::weak_ptr<lldb_private::Queue> QueueWP;
411 typedef std::shared_ptr<lldb_private::QueueItem> QueueItemSP;
412 typedef std::shared_ptr<lldb_private::REPL> REPLSP;
413 typedef std::shared_ptr<lldb_private::ScriptSummaryFormat>
414 ScriptSummaryFormatSP;
415 typedef std::shared_ptr<lldb_private::ScriptInterpreter> ScriptInterpreterSP;
416 typedef std::unique_ptr<lldb_private::ScriptInterpreter> ScriptInterpreterUP;
417 typedef std::shared_ptr<lldb_private::Section> SectionSP;
418 typedef std::unique_ptr<lldb_private::SectionList> SectionListUP;
419 typedef std::weak_ptr<lldb_private::Section> SectionWP;
420 typedef std::shared_ptr<lldb_private::SectionLoadList> SectionLoadListSP;
421 typedef std::shared_ptr<lldb_private::SearchFilter> SearchFilterSP;
422 typedef std::shared_ptr<lldb_private::Settings> SettingsSP;
423 typedef std::unique_ptr<lldb_private::SourceManager> SourceManagerUP;
424 typedef std::shared_ptr<lldb_private::StackFrame> StackFrameSP;
425 typedef std::unique_ptr<lldb_private::StackFrame> StackFrameUP;
426 typedef std::weak_ptr<lldb_private::StackFrame> StackFrameWP;
427 typedef std::shared_ptr<lldb_private::StackFrameList> StackFrameListSP;
428 typedef std::shared_ptr<lldb_private::StopInfo> StopInfoSP;
429 typedef std::shared_ptr<lldb_private::StoppointLocation> StoppointLocationSP;
430 typedef std::shared_ptr<lldb_private::Stream> StreamSP;
431 typedef std::weak_ptr<lldb_private::Stream> StreamWP;
432 typedef std::shared_ptr<lldb_private::StreamFile> StreamFileSP;
433 typedef std::shared_ptr<lldb_private::StringSummaryFormat>
434 StringTypeSummaryImplSP;
435 typedef std::unique_ptr<lldb_private::StructuredDataImpl> StructuredDataImplUP;
436 typedef std::shared_ptr<lldb_private::StructuredDataPlugin>
437 StructuredDataPluginSP;
438 typedef std::weak_ptr<lldb_private::StructuredDataPlugin>
439 StructuredDataPluginWP;
440 typedef std::shared_ptr<lldb_private::SymbolFile> SymbolFileSP;
441 typedef std::shared_ptr<lldb_private::SymbolFileType> SymbolFileTypeSP;
442 typedef std::weak_ptr<lldb_private::SymbolFileType> SymbolFileTypeWP;
443 typedef std::shared_ptr<lldb_private::SymbolContextSpecifier>
444 SymbolContextSpecifierSP;
445 typedef std::unique_ptr<lldb_private::SymbolVendor> SymbolVendorUP;
446 typedef std::shared_ptr<lldb_private::SyntheticChildren> SyntheticChildrenSP;
447 typedef std::shared_ptr<lldb_private::SyntheticChildrenFrontEnd>
448 SyntheticChildrenFrontEndSP;
449 typedef std::shared_ptr<lldb_private::Target> TargetSP;
450 typedef std::weak_ptr<lldb_private::Target> TargetWP;
451 typedef std::shared_ptr<lldb_private::TargetProperties> TargetPropertiesSP;
452 typedef std::shared_ptr<lldb_private::Thread> ThreadSP;
453 typedef std::weak_ptr<lldb_private::Thread> ThreadWP;
454 typedef std::shared_ptr<lldb_private::ThreadCollection> ThreadCollectionSP;
455 typedef std::shared_ptr<lldb_private::ThreadPlan> ThreadPlanSP;
456 typedef std::shared_ptr<lldb_private::ThreadPlanTracer> ThreadPlanTracerSP;
457 typedef std::shared_ptr<lldb_private::TraceOptions> TraceOptionsSP;
458 typedef std::shared_ptr<lldb_private::Type> TypeSP;
459 typedef std::weak_ptr<lldb_private::Type> TypeWP;
460 typedef std::shared_ptr<lldb_private::TypeCategoryImpl> TypeCategoryImplSP;
461 typedef std::shared_ptr<lldb_private::TypeImpl> TypeImplSP;
462 typedef std::shared_ptr<lldb_private::TypeMemberFunctionImpl>
463 TypeMemberFunctionImplSP;
464 typedef std::shared_ptr<lldb_private::TypeEnumMemberImpl> TypeEnumMemberImplSP;
465 typedef std::shared_ptr<lldb_private::TypeFilterImpl> TypeFilterImplSP;
466 typedef std::shared_ptr<lldb_private::TypeSystem> TypeSystemSP;
467 typedef std::shared_ptr<lldb_private::TypeFormatImpl> TypeFormatImplSP;
468 typedef std::shared_ptr<lldb_private::TypeNameSpecifierImpl>
469 TypeNameSpecifierImplSP;
470 typedef std::shared_ptr<lldb_private::TypeSummaryImpl> TypeSummaryImplSP;
471 typedef std::shared_ptr<lldb_private::TypeSummaryOptions> TypeSummaryOptionsSP;
472 typedef std::shared_ptr<lldb_private::TypeValidatorImpl> TypeValidatorImplSP;
473 #ifndef LLDB_DISABLE_PYTHON
474 typedef std::shared_ptr<lldb_private::ScriptedSyntheticChildren>
475 ScriptedSyntheticChildrenSP;
477 typedef std::shared_ptr<lldb_private::UnixSignals> UnixSignalsSP;
478 typedef std::weak_ptr<lldb_private::UnixSignals> UnixSignalsWP;
479 typedef std::shared_ptr<lldb_private::UnwindAssembly> UnwindAssemblySP;
480 typedef std::shared_ptr<lldb_private::UnwindPlan> UnwindPlanSP;
481 typedef std::shared_ptr<lldb_private::UtilityFunction> UtilityFunctionSP;
482 typedef lldb_private::SharingPtr<lldb_private::ValueObject> ValueObjectSP;
483 typedef std::shared_ptr<lldb_private::Value> ValueSP;
484 typedef std::shared_ptr<lldb_private::ValueList> ValueListSP;
485 typedef std::shared_ptr<lldb_private::Variable> VariableSP;
486 typedef std::shared_ptr<lldb_private::VariableList> VariableListSP;
487 typedef std::shared_ptr<lldb_private::ValueObjectList> ValueObjectListSP;
488 typedef std::shared_ptr<lldb_private::Watchpoint> WatchpointSP;
492 #endif // #if defined(__cplusplus)
493 #endif // LLDB_lldb_forward_h_