LLDB mainline
|
#include <Target.h>
Public Member Functions | |
~StopHookScripted () override=default | |
StopHookResult | HandleStop (ExecutionContext &exc_ctx, lldb::StreamSP output) override |
Status | SetScriptCallback (std::string class_name, StructuredData::ObjectSP extra_args_sp) |
void | GetSubclassDescription (Stream *s, lldb::DescriptionLevel level) const override |
![]() | |
StopHook (const StopHook &rhs) | |
virtual | ~StopHook ()=default |
lldb::TargetSP & | GetTarget () |
void | SetSpecifier (SymbolContextSpecifier *specifier) |
SymbolContextSpecifier * | GetSpecifier () |
bool | ExecutionContextPasses (const ExecutionContext &exe_ctx) |
virtual StopHookResult | HandleStop (ExecutionContext &exe_ctx, lldb::StreamSP output)=0 |
void | SetThreadSpecifier (ThreadSpec *specifier) |
ThreadSpec * | GetThreadSpecifier () |
bool | IsActive () |
void | SetIsActive (bool is_active) |
void | SetAutoContinue (bool auto_continue) |
bool | GetAutoContinue () const |
void | GetDescription (Stream *s, lldb::DescriptionLevel level) const |
virtual void | GetSubclassDescription (Stream *s, lldb::DescriptionLevel level) const =0 |
![]() | |
UserID (lldb::user_id_t uid=LLDB_INVALID_UID) | |
Construct with optional user ID. | |
~UserID ()=default | |
Destructor. | |
void | Clear () |
Clears the object state. | |
lldb::user_id_t | GetID () const |
Get accessor for the user ID. | |
void | SetID (lldb::user_id_t uid) |
Set accessor for the user ID. | |
Private Member Functions | |
StopHookScripted (lldb::TargetSP target_sp, lldb::user_id_t uid) | |
Use CreateStopHook to make a new empty stop hook. | |
Private Attributes | |
std::string | m_class_name |
StructuredDataImpl | m_extra_args |
This holds the dictionary of keys & values that can be used to parametrize any given callback's behavior. | |
StructuredData::GenericSP | m_implementation_sp |
This holds the python callback object. | |
Friends | |
class | Target |
Additional Inherited Members | |
![]() | |
enum class | StopHookKind : uint32_t { CommandBased = 0 , ScriptBased } |
enum class | StopHookResult : uint32_t { KeepStopped = 0 , RequestContinue , AlreadyContinued } |
![]() | |
StopHook (lldb::TargetSP target_sp, lldb::user_id_t uid) | |
![]() | |
lldb::TargetSP | m_target_sp |
lldb::SymbolContextSpecifierSP | m_specifier_sp |
std::unique_ptr< ThreadSpec > | m_thread_spec_up |
bool | m_active = true |
bool | m_auto_continue = false |
![]() | |
lldb::user_id_t | m_uid |
The user ID that uniquely identifies an object. | |
|
overridedefault |
|
inlineprivate |
|
overridevirtual |
Implements lldb_private::Target::StopHook.
Definition at line 3764 of file Target.cpp.
References lldb::eDescriptionLevelBrief, lldb_private::StructuredData::Dictionary::ForEach(), lldb_private::StructuredData::Object::GetAsDictionary(), lldb_private::ConstString::GetCString(), lldb_private::Stream::GetIndentLevel(), lldb_private::StructuredData::Dictionary::GetSize(), lldb_private::Stream::Indent(), lldb_private::StructuredData::Object::IsValid(), lldb_private::Stream::Printf(), lldb_private::Stream::PutCString(), and lldb_private::Stream::SetIndentLevel().
|
overridevirtual |
Implements lldb_private::Target::StopHook.
Definition at line 3747 of file Target.cpp.
References lldb_private::ExecutionContext::GetTargetPtr(), and lldb_private::ScriptInterpreter::ScriptedStopHookHandleStop().
Status Target::StopHookScripted::SetScriptCallback | ( | std::string | class_name, |
StructuredData::ObjectSP | extra_args_sp | ||
) |
Definition at line 3726 of file Target.cpp.
References lldb_private::ScriptInterpreter::CreateScriptedStopHook(), and error().
|
private |
|
private |
|
private |