LLDB mainline
ScriptInterpreter.h
Go to the documentation of this file.
1//===-- ScriptInterpreter.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_INTERPRETER_SCRIPTINTERPRETER_H
10#define LLDB_INTERPRETER_SCRIPTINTERPRETER_H
11
14#include "lldb/API/SBData.h"
15#include "lldb/API/SBError.h"
16#include "lldb/API/SBEvent.h"
19#include "lldb/API/SBStream.h"
32#include "lldb/Utility/Status.h"
34#include "lldb/lldb-private.h"
35#include <optional>
36
37namespace lldb_private {
38
40public:
42
43 virtual ~ScriptInterpreterLocker() = default;
44
45private:
49};
50
52public:
54
55 bool GetEnableIO() const { return m_enable_io; }
56
57 bool GetSetLLDBGlobals() const { return m_set_lldb_globals; }
58
59 // If this is true then any exceptions raised by the script will be
60 // cleared with PyErr_Clear(). If false then they will be left for
61 // the caller to clean up
62 bool GetMaskoutErrors() const { return m_maskout_errors; }
63
65 m_enable_io = enable;
66 return *this;
67 }
68
71 return *this;
72 }
73
75 m_maskout_errors = maskout;
76 return *this;
77 }
78
79private:
80 bool m_enable_io = true;
81 bool m_set_lldb_globals = true;
82 bool m_maskout_errors = true;
83};
84
86public:
87 LoadScriptOptions() = default;
88
89 bool GetInitSession() const { return m_init_session; }
90 bool GetSilent() const { return m_silent; }
91
94 return *this;
95 }
96
98 m_silent = b;
99 return *this;
100 }
101
102private:
103 bool m_init_session = false;
104 bool m_silent = false;
105};
106
108public:
109 /// Create an IO redirect. If IO is enabled, this will redirects the output
110 /// to the command return object if set or to the debugger otherwise. If IO
111 /// is disabled, it will redirect all IO to /dev/null.
112 static llvm::Expected<std::unique_ptr<ScriptInterpreterIORedirect>>
113 Create(bool enable_io, Debugger &debugger, CommandReturnObject *result);
114
116
118 lldb::FileSP GetOutputFile() const { return m_output_file_sp->GetFileSP(); }
119 lldb::FileSP GetErrorFile() const { return m_error_file_sp->GetFileSP(); }
120
121 /// Flush our output and error file handles.
122 void Flush();
123
124private:
125 ScriptInterpreterIORedirect(std::unique_ptr<File> input,
126 std::unique_ptr<File> output);
128
134};
135
137public:
154 };
155
156 ScriptInterpreter(Debugger &debugger, lldb::ScriptLanguage script_lang);
157
159
160 ~ScriptInterpreter() override = default;
161
162 virtual bool Interrupt() { return false; }
163
164 virtual bool ExecuteOneLine(
165 llvm::StringRef command, CommandReturnObject *result,
166 const ExecuteScriptOptions &options = ExecuteScriptOptions()) = 0;
167
168 virtual void ExecuteInterpreterLoop() = 0;
169
171 llvm::StringRef in_string, ScriptReturnType return_type, void *ret_value,
172 const ExecuteScriptOptions &options = ExecuteScriptOptions()) {
173 return true;
174 }
175
177 const char *in_string,
178 const ExecuteScriptOptions &options = ExecuteScriptOptions()) {
180 error.SetErrorString("not implemented");
181 return error;
182 }
183
184 virtual Status
187 error.SetErrorString("not implemented");
188 return error;
189 }
190
192 std::string &output,
193 bool has_extra_args,
194 bool is_callback) {
196 error.SetErrorString("not implemented");
197 return error;
198 }
199
201 std::string &output,
202 bool is_callback) {
203 return false;
204 }
205
206 virtual bool GenerateTypeScriptFunction(const char *oneliner,
207 std::string &output,
208 const void *name_token = nullptr) {
209 return false;
210 }
211
213 std::string &output,
214 const void *name_token = nullptr) {
215 return false;
216 }
217
219 std::string &output) {
220 return false;
221 }
222
223 virtual bool GenerateTypeSynthClass(StringList &input, std::string &output,
224 const void *name_token = nullptr) {
225 return false;
226 }
227
228 virtual bool GenerateTypeSynthClass(const char *oneliner, std::string &output,
229 const void *name_token = nullptr) {
230 return false;
231 }
232
234 CreateSyntheticScriptedProvider(const char *class_name,
235 lldb::ValueObjectSP valobj) {
237 }
238
240 CreateScriptCommandObject(const char *class_name) {
242 }
243
245 CreateFrameRecognizer(const char *class_name) {
247 }
248
250 const StructuredData::ObjectSP &implementor,
251 lldb::StackFrameSP frame_sp) {
253 }
254
255 virtual bool ShouldHide(const StructuredData::ObjectSP &implementor,
256 lldb::StackFrameSP frame_sp) {
257 return false;
258 }
259
261 CreateScriptedBreakpointResolver(const char *class_name,
262 const StructuredDataImpl &args_data,
263 lldb::BreakpointSP &bkpt_sp) {
265 }
266
267 virtual bool
269 SymbolContext *sym_ctx)
270 {
271 return false;
272 }
273
274 virtual lldb::SearchDepth
276 {
278 }
279
281 CreateScriptedStopHook(lldb::TargetSP target_sp, const char *class_name,
282 const StructuredDataImpl &args_data, Status &error) {
283 error.SetErrorString("Creating scripted stop-hooks with the current "
284 "script interpreter is not supported.");
286 }
287
288 // This dispatches to the handle_stop method of the stop-hook class. It
289 // returns a "should_stop" bool.
290 virtual bool
292 ExecutionContext &exc_ctx,
293 lldb::StreamSP stream_sp) {
294 return true;
295 }
296
300 }
301
304 const char *setting_name, lldb_private::Status &error) {
306 }
307
308 virtual Status GenerateFunction(const char *signature,
309 const StringList &input,
310 bool is_callback) {
312 error.SetErrorString("unimplemented");
313 return error;
314 }
315
317 std::vector<std::reference_wrapper<BreakpointOptions>> &options,
318 CommandReturnObject &result);
319
320 virtual void
322 CommandReturnObject &result);
323
324 /// Set the specified text as the callback for the breakpoint.
326 std::vector<std::reference_wrapper<BreakpointOptions>> &bp_options_vec,
327 const char *callback_text);
328
330 const char *callback_text,
331 bool is_callback) {
333 error.SetErrorString("unimplemented");
334 return error;
335 }
336
337 /// This one is for deserialization:
339 BreakpointOptions &bp_options,
340 std::unique_ptr<BreakpointOptions::CommandData> &data_up) {
342 error.SetErrorString("unimplemented");
343 return error;
344 }
345
347 std::vector<std::reference_wrapper<BreakpointOptions>> &bp_options_vec,
348 const char *function_name, StructuredData::ObjectSP extra_args_sp);
349
350 /// Set a script function as the callback for the breakpoint.
351 virtual Status
353 const char *function_name,
354 StructuredData::ObjectSP extra_args_sp) {
356 error.SetErrorString("unimplemented");
357 return error;
358 }
359
360 /// Set a one-liner as the callback for the watchpoint.
362 const char *user_input,
363 bool is_callback) {}
364
365 virtual bool GetScriptedSummary(const char *function_name,
366 lldb::ValueObjectSP valobj,
367 StructuredData::ObjectSP &callee_wrapper_sp,
368 const TypeSummaryOptions &options,
369 std::string &retval) {
370 return false;
371 }
372
373 // Calls the specified formatter matching Python function and returns its
374 // result (true if it's a match, false if we should keep looking for a
375 // matching formatter).
376 virtual bool FormatterCallbackFunction(const char *function_name,
377 lldb::TypeImplSP type_impl_sp) {
378 return true;
379 }
380
381 virtual void Clear() {
382 // Clean up any ref counts to SBObjects that might be in global variables
383 }
384
385 virtual size_t
387 uint32_t max) {
388 return 0;
389 }
390
391 virtual lldb::ValueObjectSP
392 GetChildAtIndex(const StructuredData::ObjectSP &implementor, uint32_t idx) {
393 return lldb::ValueObjectSP();
394 }
395
396 virtual int
398 const char *child_name) {
399 return UINT32_MAX;
400 }
401
402 virtual bool
404 return false;
405 }
406
408 const StructuredData::ObjectSP &implementor) {
409 return true;
410 }
411
412 virtual lldb::ValueObjectSP
414 return nullptr;
415 }
416
417 virtual ConstString
419 return ConstString();
420 }
421
422 virtual bool
423 RunScriptBasedCommand(const char *impl_function, llvm::StringRef args,
424 ScriptedCommandSynchronicity synchronicity,
426 Status &error,
427 const lldb_private::ExecutionContext &exe_ctx) {
428 return false;
429 }
430
432 StructuredData::GenericSP impl_obj_sp, llvm::StringRef args,
433 ScriptedCommandSynchronicity synchronicity,
435 const lldb_private::ExecutionContext &exe_ctx) {
436 return false;
437 }
438
440 StructuredData::GenericSP impl_obj_sp, Args& args,
441 ScriptedCommandSynchronicity synchronicity,
443 const lldb_private::ExecutionContext &exe_ctx) {
444 return false;
445 }
446
447 virtual std::optional<std::string>
449 Args &args) {
450 return std::nullopt;
451 }
452
453 virtual bool RunScriptFormatKeyword(const char *impl_function,
454 Process *process, std::string &output,
455 Status &error) {
456 error.SetErrorString("unimplemented");
457 return false;
458 }
459
460 virtual bool RunScriptFormatKeyword(const char *impl_function, Thread *thread,
461 std::string &output, Status &error) {
462 error.SetErrorString("unimplemented");
463 return false;
464 }
465
466 virtual bool RunScriptFormatKeyword(const char *impl_function, Target *target,
467 std::string &output, Status &error) {
468 error.SetErrorString("unimplemented");
469 return false;
470 }
471
472 virtual bool RunScriptFormatKeyword(const char *impl_function,
473 StackFrame *frame, std::string &output,
474 Status &error) {
475 error.SetErrorString("unimplemented");
476 return false;
477 }
478
479 virtual bool RunScriptFormatKeyword(const char *impl_function,
480 ValueObject *value, std::string &output,
481 Status &error) {
482 error.SetErrorString("unimplemented");
483 return false;
484 }
485
486 virtual bool GetDocumentationForItem(const char *item, std::string &dest) {
487 dest.clear();
488 return false;
489 }
490
491 virtual bool
493 std::string &dest) {
494 dest.clear();
495 return false;
496 }
497
500 return {};
501 }
502
505 return {};
506 }
507
509 StructuredData::GenericSP cmd_obj_sp, ExecutionContext *exe_ctx,
510 llvm::StringRef long_option, llvm::StringRef value) {
511 return false;
512 }
513
515 StructuredData::GenericSP cmd_obj_sp) {
516 return;
517 }
518
519 virtual uint32_t
521 return 0;
522 }
523
525 std::string &dest) {
526 dest.clear();
527 return false;
528 }
529
530 virtual bool CheckObjectExists(const char *name) { return false; }
531
532 virtual bool
533 LoadScriptingModule(const char *filename, const LoadScriptOptions &options,
535 StructuredData::ObjectSP *module_sp = nullptr,
536 FileSpec extra_search_dir = {});
537
538 virtual bool IsReservedWord(const char *word) { return false; }
539
540 virtual std::unique_ptr<ScriptInterpreterLocker> AcquireInterpreterLock();
541
543
544 virtual llvm::Expected<unsigned>
545 GetMaxPositionalArgumentsForCallable(const llvm::StringRef &callable_name) {
546 return llvm::createStringError(
547 llvm::inconvertibleErrorCode(), "Unimplemented function");
548 }
549
550 static std::string LanguageToString(lldb::ScriptLanguage language);
551
552 static lldb::ScriptLanguage StringToLanguage(const llvm::StringRef &string);
553
555
557 return {};
558 }
559
561 return {};
562 }
563
566 return {};
567 }
568
570 return {};
571 }
572
574 return {};
575 }
576
579 return {};
580 }
581
583 GetDataExtractorFromSBData(const lldb::SBData &data) const;
584
586
587 Event *GetOpaqueTypeFromSBEvent(const lldb::SBEvent &event) const;
588
590
592 GetOpaqueTypeFromSBBreakpoint(const lldb::SBBreakpoint &breakpoint) const;
593
595 GetOpaqueTypeFromSBAttachInfo(const lldb::SBAttachInfo &attach_info) const;
596
598 GetOpaqueTypeFromSBLaunchInfo(const lldb::SBLaunchInfo &launch_info) const;
599
600 std::optional<MemoryRegionInfo> GetOpaqueTypeFromSBMemoryRegionInfo(
601 const lldb::SBMemoryRegionInfo &mem_region) const;
602
603protected:
606};
607
608} // namespace lldb_private
609
610#endif // LLDB_INTERPRETER_SCRIPTINTERPRETER_H
static llvm::raw_ostream & error(Stream &strm)
A command line argument class.
Definition: Args.h:33
"lldb/Breakpoint/BreakpointOptions.h" Class that manages the options on a breakpoint or breakpoint lo...
A uniqued constant string class.
Definition: ConstString.h:40
A class to manage flag bits.
Definition: Debugger.h:80
ExecuteScriptOptions & SetMaskoutErrors(bool maskout)
ExecuteScriptOptions & SetSetLLDBGlobals(bool set)
ExecuteScriptOptions & SetEnableIO(bool enable)
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
A file utility class.
Definition: FileSpec.h:56
LoadScriptOptions & SetInitSession(bool b)
LoadScriptOptions & SetSilent(bool b)
A plug-in interface definition class for debugging a process.
Definition: Process.h:341
void Flush()
Flush our output and error file handles.
static llvm::Expected< std::unique_ptr< ScriptInterpreterIORedirect > > Create(bool enable_io, Debugger &debugger, CommandReturnObject *result)
Create an IO redirect.
const ScriptInterpreterLocker & operator=(const ScriptInterpreterLocker &)=delete
ScriptInterpreterLocker(const ScriptInterpreterLocker &)=delete
virtual ~ScriptInterpreterLocker()=default
virtual bool SetOptionValueForCommandObject(StructuredData::GenericSP cmd_obj_sp, ExecutionContext *exe_ctx, llvm::StringRef long_option, llvm::StringRef value)
static lldb::ScriptLanguage StringToLanguage(const llvm::StringRef &string)
virtual void CollectDataForBreakpointCommandCallback(std::vector< std::reference_wrapper< BreakpointOptions > > &options, CommandReturnObject &result)
virtual lldb::ValueObjectListSP GetRecognizedArguments(const StructuredData::ObjectSP &implementor, lldb::StackFrameSP frame_sp)
const char * GetScriptInterpreterPtyName()
lldb::ProcessAttachInfoSP GetOpaqueTypeFromSBAttachInfo(const lldb::SBAttachInfo &attach_info) const
virtual Status ExecuteMultipleLines(const char *in_string, const ExecuteScriptOptions &options=ExecuteScriptOptions())
virtual bool LoadScriptingModule(const char *filename, const LoadScriptOptions &options, lldb_private::Status &error, StructuredData::ObjectSP *module_sp=nullptr, FileSpec extra_search_dir={})
lldb::StreamSP GetOpaqueTypeFromSBStream(const lldb::SBStream &stream) const
virtual StructuredData::GenericSP CreateScriptCommandObject(const char *class_name)
virtual size_t CalculateNumChildren(const StructuredData::ObjectSP &implementor, uint32_t max)
virtual bool GenerateTypeScriptFunction(const char *oneliner, std::string &output, const void *name_token=nullptr)
virtual bool RunScriptFormatKeyword(const char *impl_function, Target *target, std::string &output, Status &error)
virtual bool GenerateTypeScriptFunction(StringList &input, std::string &output, const void *name_token=nullptr)
virtual lldb::ScriptedProcessInterfaceUP CreateScriptedProcessInterface()
virtual Status ExportFunctionDefinitionToInterpreter(StringList &function_def)
virtual int GetIndexOfChildWithName(const StructuredData::ObjectSP &implementor, const char *child_name)
~ScriptInterpreter() override=default
virtual lldb::OperatingSystemInterfaceSP CreateOperatingSystemInterface()
virtual StructuredData::ObjectSP CreateSyntheticScriptedProvider(const char *class_name, lldb::ValueObjectSP valobj)
virtual Status SetBreakpointCommandCallbackFunction(BreakpointOptions &bp_options, const char *function_name, StructuredData::ObjectSP extra_args_sp)
Set a script function as the callback for the breakpoint.
virtual llvm::Expected< unsigned > GetMaxPositionalArgumentsForCallable(const llvm::StringRef &callable_name)
virtual bool ExecuteOneLineWithReturn(llvm::StringRef in_string, ScriptReturnType return_type, void *ret_value, const ExecuteScriptOptions &options=ExecuteScriptOptions())
virtual bool ScriptedBreakpointResolverSearchCallback(StructuredData::GenericSP implementor_sp, SymbolContext *sym_ctx)
virtual bool GenerateTypeSynthClass(StringList &input, std::string &output, const void *name_token=nullptr)
virtual bool RunScriptBasedCommand(const char *impl_function, llvm::StringRef args, ScriptedCommandSynchronicity synchronicity, lldb_private::CommandReturnObject &cmd_retobj, Status &error, const lldb_private::ExecutionContext &exe_ctx)
virtual void ExecuteInterpreterLoop()=0
virtual StructuredData::GenericSP CreateFrameRecognizer(const char *class_name)
virtual bool GenerateScriptAliasFunction(StringList &input, std::string &output)
virtual bool MightHaveChildrenSynthProviderInstance(const StructuredData::ObjectSP &implementor)
virtual bool GenerateWatchpointCommandCallbackData(StringList &input, std::string &output, bool is_callback)
virtual StructuredData::DictionarySP GetDynamicSettings(StructuredData::ObjectSP plugin_module_sp, Target *target, const char *setting_name, lldb_private::Status &error)
virtual bool ScriptedStopHookHandleStop(StructuredData::GenericSP implementor_sp, ExecutionContext &exc_ctx, lldb::StreamSP stream_sp)
virtual Status GenerateFunction(const char *signature, const StringList &input, bool is_callback)
virtual lldb::ValueObjectSP GetChildAtIndex(const StructuredData::ObjectSP &implementor, uint32_t idx)
Event * GetOpaqueTypeFromSBEvent(const lldb::SBEvent &event) const
virtual std::optional< std::string > GetRepeatCommandForScriptedCommand(StructuredData::GenericSP impl_obj_sp, Args &args)
virtual void SetWatchpointCommandCallback(WatchpointOptions *wp_options, const char *user_input, bool is_callback)
Set a one-liner as the callback for the watchpoint.
Status SetBreakpointCommandCallback(std::vector< std::reference_wrapper< BreakpointOptions > > &bp_options_vec, const char *callback_text)
Set the specified text as the callback for the breakpoint.
lldb::ProcessLaunchInfoSP GetOpaqueTypeFromSBLaunchInfo(const lldb::SBLaunchInfo &launch_info) const
virtual lldb::ValueObjectSP GetSyntheticValue(const StructuredData::ObjectSP &implementor)
virtual bool ExecuteOneLine(llvm::StringRef command, CommandReturnObject *result, const ExecuteScriptOptions &options=ExecuteScriptOptions())=0
virtual bool RunScriptFormatKeyword(const char *impl_function, StackFrame *frame, std::string &output, Status &error)
virtual Status GenerateBreakpointCommandCallbackData(StringList &input, std::string &output, bool has_extra_args, bool is_callback)
static std::string LanguageToString(lldb::ScriptLanguage language)
virtual lldb::SearchDepth ScriptedBreakpointResolverSearchDepth(StructuredData::GenericSP implementor_sp)
virtual bool RunScriptFormatKeyword(const char *impl_function, ValueObject *value, std::string &output, Status &error)
Status GetStatusFromSBError(const lldb::SBError &error) const
std::optional< MemoryRegionInfo > GetOpaqueTypeFromSBMemoryRegionInfo(const lldb::SBMemoryRegionInfo &mem_region) const
virtual std::unique_ptr< ScriptInterpreterLocker > AcquireInterpreterLock()
virtual bool GetDocumentationForItem(const char *item, std::string &dest)
virtual StructuredData::DictionarySP GetInterpreterInfo()
virtual bool UpdateSynthProviderInstance(const StructuredData::ObjectSP &implementor)
virtual StructuredData::ObjectSP LoadPluginModule(const FileSpec &file_spec, lldb_private::Status &error)
virtual bool RunScriptBasedParsedCommand(StructuredData::GenericSP impl_obj_sp, Args &args, ScriptedCommandSynchronicity synchronicity, lldb_private::CommandReturnObject &cmd_retobj, Status &error, const lldb_private::ExecutionContext &exe_ctx)
Status SetBreakpointCommandCallbackFunction(std::vector< std::reference_wrapper< BreakpointOptions > > &bp_options_vec, const char *function_name, StructuredData::ObjectSP extra_args_sp)
virtual bool GenerateTypeSynthClass(const char *oneliner, std::string &output, const void *name_token=nullptr)
virtual StructuredData::ObjectSP CreateStructuredDataFromScriptObject(ScriptObject obj)
virtual StructuredData::ObjectSP GetOptionsForCommandObject(StructuredData::GenericSP cmd_obj_sp)
virtual StructuredData::ObjectSP GetArgumentsForCommandObject(StructuredData::GenericSP cmd_obj_sp)
virtual void OptionParsingStartedForCommandObject(StructuredData::GenericSP cmd_obj_sp)
virtual bool GetScriptedSummary(const char *function_name, lldb::ValueObjectSP valobj, StructuredData::ObjectSP &callee_wrapper_sp, const TypeSummaryOptions &options, std::string &retval)
virtual Status SetBreakpointCommandCallback(BreakpointOptions &bp_options, std::unique_ptr< BreakpointOptions::CommandData > &data_up)
This one is for deserialization:
lldb::BreakpointSP GetOpaqueTypeFromSBBreakpoint(const lldb::SBBreakpoint &breakpoint) const
virtual bool GetLongHelpForCommandObject(StructuredData::GenericSP cmd_obj_sp, std::string &dest)
virtual lldb::ScriptedThreadPlanInterfaceSP CreateScriptedThreadPlanInterface()
virtual bool RunScriptFormatKeyword(const char *impl_function, Thread *thread, std::string &output, Status &error)
virtual bool CheckObjectExists(const char *name)
virtual bool RunScriptBasedCommand(StructuredData::GenericSP impl_obj_sp, llvm::StringRef args, ScriptedCommandSynchronicity synchronicity, lldb_private::CommandReturnObject &cmd_retobj, Status &error, const lldb_private::ExecutionContext &exe_ctx)
virtual bool FormatterCallbackFunction(const char *function_name, lldb::TypeImplSP type_impl_sp)
virtual ConstString GetSyntheticTypeName(const StructuredData::ObjectSP &implementor)
lldb::ScriptLanguage m_script_lang
lldb::ScriptLanguage GetLanguage()
virtual uint32_t GetFlagsForCommandObject(StructuredData::GenericSP cmd_obj_sp)
virtual bool GetShortHelpForCommandObject(StructuredData::GenericSP cmd_obj_sp, std::string &dest)
virtual StructuredData::GenericSP CreateScriptedStopHook(lldb::TargetSP target_sp, const char *class_name, const StructuredDataImpl &args_data, Status &error)
virtual bool ShouldHide(const StructuredData::ObjectSP &implementor, lldb::StackFrameSP frame_sp)
virtual bool IsReservedWord(const char *word)
virtual StructuredData::GenericSP CreateScriptedBreakpointResolver(const char *class_name, const StructuredDataImpl &args_data, lldb::BreakpointSP &bkpt_sp)
lldb::DataExtractorSP GetDataExtractorFromSBData(const lldb::SBData &data) const
virtual lldb::ScriptedPlatformInterfaceUP GetScriptedPlatformInterface()
virtual bool RunScriptFormatKeyword(const char *impl_function, Process *process, std::string &output, Status &error)
virtual lldb::ScriptedThreadInterfaceSP CreateScriptedThreadInterface()
virtual Status SetBreakpointCommandCallback(BreakpointOptions &bp_options, const char *callback_text, bool is_callback)
virtual void CollectDataForWatchpointCommandCallback(WatchpointOptions *wp_options, CommandReturnObject &result)
This base class provides an interface to stack frames.
Definition: StackFrame.h:43
An error handling class.
Definition: Status.h:44
std::shared_ptr< Generic > GenericSP
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
Defines a symbol context baton that can be handed other debug core functions.
Definition: SymbolContext.h:34
"lldb/Core/ThreadedCommunication.h" Variation of Communication that supports threaded reads.
"lldb/Breakpoint/WatchpointOptions.h" Class that manages the options on a watchpoint.
#define UINT32_MAX
Definition: lldb-defines.h:19
A class that represents a running process on the host machine.
std::unique_ptr< lldb_private::ScriptedPlatformInterface > ScriptedPlatformInterfaceUP
Definition: lldb-forward.h:407
ScriptLanguage
Script interpreter types.
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
Definition: lldb-forward.h:420
std::shared_ptr< lldb_private::ScriptedThreadPlanInterface > ScriptedThreadPlanInterfaceSP
Definition: lldb-forward.h:413
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
Definition: lldb-forward.h:480
std::shared_ptr< lldb_private::ProcessAttachInfo > ProcessAttachInfoSP
Definition: lldb-forward.h:388
std::shared_ptr< lldb_private::OperatingSystemInterface > OperatingSystemInterfaceSP
Definition: lldb-forward.h:381
std::shared_ptr< lldb_private::Stream > StreamSP
Definition: lldb-forward.h:428
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP
Definition: lldb-forward.h:319
std::shared_ptr< lldb_private::ScriptedThreadInterface > ScriptedThreadInterfaceSP
Definition: lldb-forward.h:411
std::shared_ptr< lldb_private::ValueObjectList > ValueObjectListSP
Definition: lldb-forward.h:484
std::shared_ptr< lldb_private::StreamFile > StreamFileSP
Definition: lldb-forward.h:429
@ eSearchDepthModule
std::shared_ptr< lldb_private::TypeImpl > TypeImplSP
Definition: lldb-forward.h:460
std::shared_ptr< lldb_private::Target > TargetSP
Definition: lldb-forward.h:444
std::shared_ptr< lldb_private::File > FileSP
Definition: lldb-forward.h:351
std::shared_ptr< lldb_private::DataExtractor > DataExtractorSP
Definition: lldb-forward.h:336
std::unique_ptr< lldb_private::ScriptedProcessInterface > ScriptedProcessInterfaceUP
Definition: lldb-forward.h:409
std::shared_ptr< lldb_private::ProcessLaunchInfo > ProcessLaunchInfoSP
Definition: lldb-forward.h:389