LLDB mainline
|
"lldb/Breakpoint/BreakpointOptions.h" Class that manages the options on a breakpoint or breakpoint location. More...
#include <BreakpointOptions.h>
Classes | |
class | CommandBaton |
struct | CommandData |
Public Types | |
enum | OptionKind { eCallback = 1 << 0 , eEnabled = 1 << 1 , eOneShot = 1 << 2 , eIgnoreCount = 1 << 3 , eThreadSpec = 1 << 4 , eCondition = 1 << 5 , eAutoContinue = 1 << 6 , eAllOptions } |
typedef std::shared_ptr< CommandBaton > | CommandBatonSP |
Public Member Functions | |
BreakpointOptions (const char *condition, bool enabled=true, int32_t ignore=0, bool one_shot=false, bool auto_continue=false) | |
This constructor allows you to specify all the breakpoint options except the callback. | |
BreakpointOptions (bool all_flags_set) | |
Breakpoints make options with all flags set. | |
BreakpointOptions (const BreakpointOptions &rhs) | |
virtual | ~BreakpointOptions () |
virtual StructuredData::ObjectSP | SerializeToStructuredData () |
const BreakpointOptions & | operator= (const BreakpointOptions &rhs) |
void | CopyOverSetOptions (const BreakpointOptions &rhs) |
Copy over only the options set in the incoming BreakpointOptions. | |
void | SetCallback (BreakpointHitCallback callback, const lldb::BatonSP &baton_sp, bool synchronous=false) |
Adds a callback to the breakpoint option set. | |
void | SetCallback (BreakpointHitCallback callback, const BreakpointOptions::CommandBatonSP &command_baton_sp, bool synchronous=false) |
bool | GetCommandLineCallbacks (StringList &command_list) |
Returns the command line commands for the callback on this breakpoint. | |
void | ClearCallback () |
Remove the callback from this option set. | |
bool | InvokeCallback (StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id) |
Use this function to invoke the callback for a specific stop. | |
bool | IsCallbackSynchronous () const |
Used in InvokeCallback to tell whether it is the right time to run this kind of callback. | |
Baton * | GetBaton () |
Fetch the baton from the callback. | |
const Baton * | GetBaton () const |
Fetch a const version of the baton from the callback. | |
void | SetCondition (const char *condition) |
Set the breakpoint option's condition. | |
const char * | GetConditionText (size_t *hash=nullptr) const |
Return a pointer to the text of the condition expression. | |
bool | IsEnabled () const |
Check the Enable/Disable state. | |
void | SetEnabled (bool enabled) |
If enable is true, enable the breakpoint, if false disable it. | |
bool | IsAutoContinue () const |
Check the auto-continue state. | |
void | SetAutoContinue (bool auto_continue) |
Set the auto-continue state. | |
bool | IsOneShot () const |
Check the One-shot state. | |
void | SetOneShot (bool one_shot) |
If enable is true, enable the breakpoint, if false disable it. | |
void | SetIgnoreCount (uint32_t n) |
Set the breakpoint to ignore the next count breakpoint hits. | |
uint32_t | GetIgnoreCount () const |
Return the current Ignore Count. | |
const ThreadSpec * | GetThreadSpecNoCreate () const |
Return the current thread spec for this option. | |
ThreadSpec * | GetThreadSpec () |
Returns a pointer to the ThreadSpec for this option, creating it. | |
void | SetThreadID (lldb::tid_t thread_id) |
void | GetDescription (Stream *s, lldb::DescriptionLevel level) const |
bool | HasCallback () const |
Check if the breakpoint option has a callback set. | |
void | SetCommandDataCallback (std::unique_ptr< CommandData > &cmd_data) |
Set a callback based on BreakpointOptions::CommandData. | |
void | Clear () |
bool | AnySet () const |
Static Public Member Functions | |
static std::unique_ptr< BreakpointOptions > | CreateFromStructuredData (Target &target, const StructuredData::Dictionary &data_dict, Status &error) |
static const char * | GetSerializationKey () |
static bool | NullCallback (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id) |
This is the default empty callback. | |
Protected Types | |
enum class | OptionNames { ConditionText = 0 , IgnoreCount , EnabledState , OneShotState , AutoContinue , LastOptionName } |
Protected Member Functions | |
bool | IsOptionSet (OptionKind kind) |
void | SetThreadSpec (std::unique_ptr< ThreadSpec > &thread_spec_up) |
Static Protected Member Functions | |
static const char * | GetKey (OptionNames enum_value) |
static bool | BreakpointOptionsCallbackFunction (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id) |
Static Protected Attributes | |
static const char * | g_option_names [(size_t) OptionNames::LastOptionName] |
Private Attributes | |
BreakpointHitCallback | m_callback |
For BreakpointOptions only. | |
lldb::BatonSP | m_callback_baton_sp |
This is the client data for the callback. | |
bool | m_baton_is_command_baton |
bool | m_callback_is_synchronous |
bool | m_enabled |
bool | m_one_shot |
If set, the breakpoint delete itself after being hit once. | |
uint32_t | m_ignore_count |
Number of times to ignore this breakpoint. | |
std::unique_ptr< ThreadSpec > | m_thread_spec_up |
Thread for which this breakpoint will stop. | |
std::string | m_condition_text |
The condition to test. | |
size_t | m_condition_text_hash |
Its hash, so that locations know when the condition is updated. | |
bool | m_inject_condition |
If set, inject breakpoint condition into process. | |
bool | m_auto_continue |
If set, auto-continue from breakpoint. | |
Flags | m_set_flags |
Which options are set at this level. | |
Friends | |
class | BreakpointLocation |
class | BreakpointName |
class | lldb_private::BreakpointOptionGroup |
class | Breakpoint |
"lldb/Breakpoint/BreakpointOptions.h" Class that manages the options on a breakpoint or breakpoint location.
Definition at line 27 of file BreakpointOptions.h.
typedef std::shared_ptr<CommandBaton> lldb_private::BreakpointOptions::CommandBatonSP |
Definition at line 93 of file BreakpointOptions.h.
Enumerator | |
---|---|
eCallback | |
eEnabled | |
eOneShot | |
eIgnoreCount | |
eThreadSpec | |
eCondition | |
eAutoContinue | |
eAllOptions |
Definition at line 34 of file BreakpointOptions.h.
|
strongprotected |
Enumerator | |
---|---|
ConditionText | |
IgnoreCount | |
EnabledState | |
OneShotState | |
AutoContinue | |
LastOptionName |
Definition at line 356 of file BreakpointOptions.h.
BreakpointOptions::BreakpointOptions | ( | const char * | condition, |
bool | enabled = true , |
||
int32_t | ignore = 0 , |
||
bool | one_shot = false , |
||
bool | auto_continue = false |
||
) |
This constructor allows you to specify all the breakpoint options except the callback.
That one is more complicated, and better to do by hand.
[in] | condition | The expression which if it evaluates to true if we are to stop |
[in] | enabled | Is this breakpoint enabled. |
[in] | ignore | How many breakpoint hits we should ignore before stopping. |
[in] | one_shot | Should this breakpoint delete itself after being hit once. |
[in] | auto_continue | Should this breakpoint auto-continue after running its commands. |
Definition at line 115 of file BreakpointOptions.cpp.
References eAutoContinue, eEnabled, eIgnoreCount, eOneShot, m_set_flags, lldb_private::Flags::Set(), and SetCondition().
BreakpointOptions::BreakpointOptions | ( | bool | all_flags_set | ) |
Breakpoints make options with all flags set.
Locations and Names make options with no flags set.
Definition at line 106 of file BreakpointOptions.cpp.
References m_set_flags, and lldb_private::Flags::Set().
BreakpointOptions::BreakpointOptions | ( | const BreakpointOptions & | rhs | ) |
Definition at line 129 of file BreakpointOptions.cpp.
References m_condition_text, m_condition_text_hash, and m_thread_spec_up.
|
virtualdefault |
|
inline |
Definition at line 345 of file BreakpointOptions.h.
References lldb_private::Flags::AnySet(), eAllOptions, and m_set_flags.
|
staticprotected |
Definition at line 599 of file BreakpointOptions.cpp.
References lldb_private::StoppointCallbackContext::exe_ctx_ref, lldb_private::Debugger::GetAsyncErrorStream(), lldb_private::Debugger::GetAsyncOutputStream(), lldb_private::Debugger::GetCommandInterpreter(), lldb_private::Target::GetDebugger(), lldb_private::CommandReturnObject::GetImmediateErrorStream(), lldb_private::CommandReturnObject::GetImmediateOutputStream(), lldb_private::StringList::GetSize(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::Debugger::GetUseColor(), lldb_private::CommandInterpreter::HandleCommands(), lldb_private::CommandInterpreterRunOptions::SetAddToHistory(), lldb_private::CommandInterpreterRunOptions::SetEchoCommands(), lldb_private::CommandReturnObject::SetImmediateErrorStream(), lldb_private::CommandReturnObject::SetImmediateOutputStream(), lldb_private::CommandInterpreterRunOptions::SetPrintErrors(), lldb_private::CommandInterpreterRunOptions::SetPrintResults(), lldb_private::CommandInterpreterRunOptions::SetStopOnContinue(), lldb_private::CommandInterpreterRunOptions::SetStopOnError(), lldb_private::BreakpointOptions::CommandData::stop_on_error, and lldb_private::BreakpointOptions::CommandData::user_source.
Referenced by SetCommandDataCallback().
void BreakpointOptions::Clear | ( | ) |
Definition at line 640 of file BreakpointOptions.cpp.
References lldb_private::Flags::Clear(), m_auto_continue, m_baton_is_command_baton, m_callback, m_callback_baton_sp, m_callback_is_synchronous, m_condition_text, m_enabled, m_ignore_count, m_one_shot, m_set_flags, and m_thread_spec_up.
Referenced by lldb_private::BreakpointOptionGroup::OptionParsingStarting().
void BreakpointOptions::ClearCallback | ( | ) |
Remove the callback from this option set.
Definition at line 414 of file BreakpointOptions.cpp.
References lldb_private::Flags::Clear(), eCallback, m_baton_is_command_baton, m_callback, m_callback_baton_sp, m_callback_is_synchronous, and m_set_flags.
Referenced by lldb_private::Breakpoint::ClearCallback(), and lldb_private::BreakpointLocation::ClearCallback().
void BreakpointOptions::CopyOverSetOptions | ( | const BreakpointOptions & | rhs | ) |
Copy over only the options set in the incoming BreakpointOptions.
Definition at line 162 of file BreakpointOptions.cpp.
References lldb_private::Flags::Clear(), eAutoContinue, eCallback, eCondition, eEnabled, eIgnoreCount, eOneShot, eThreadSpec, m_auto_continue, m_baton_is_command_baton, m_callback, m_callback_baton_sp, m_callback_is_synchronous, m_condition_text, m_condition_text_hash, m_enabled, m_ignore_count, m_one_shot, m_set_flags, m_thread_spec_up, lldb_private::Flags::Set(), and lldb_private::Flags::Test().
Referenced by lldb_private::Target::ConfigureBreakpointName(), and CommandObjectBreakpointModify::DoExecute().
|
static |
Definition at line 218 of file BreakpointOptions.cpp.
References lldb_private::Status::AsCString(), AutoContinue, ConditionText, lldb_private::ThreadSpec::CreateFromStructuredData(), lldb_private::BreakpointOptions::CommandData::CreateFromStructuredData(), eAutoContinue, eCondition, eEnabled, eIgnoreCount, EnabledState, eOneShot, error(), lldb::eScriptLanguageNone, lldb_private::Status::Fail(), lldb_private::Target::GetDebugger(), GetKey(), lldb_private::ScriptInterpreter::GetLanguage(), lldb_private::Debugger::GetScriptInterpreter(), lldb_private::BreakpointOptions::CommandData::GetSerializationKey(), lldb_private::ThreadSpec::GetSerializationKey(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsBoolean(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsDictionary(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsInteger(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsString(), lldb_private::StructuredData::Dictionary::HasKey(), IgnoreCount, lldb_private::ScriptInterpreter::LanguageToString(), OneShotState, lldb_private::Flags::Set(), and lldb_private::ScriptInterpreter::SetBreakpointCommandCallback().
Referenced by lldb_private::Breakpoint::CreateFromStructuredData().
Baton * BreakpointOptions::GetBaton | ( | ) |
Fetch the baton from the callback.
Definition at line 422 of file BreakpointOptions.cpp.
References m_callback_baton_sp.
Referenced by CommandObjectBreakpointCommandList::DoExecute().
const Baton * BreakpointOptions::GetBaton | ( | ) | const |
Fetch a const version of the baton from the callback.
Definition at line 424 of file BreakpointOptions.cpp.
References m_callback_baton_sp.
bool BreakpointOptions::GetCommandLineCallbacks | ( | StringList & | command_list | ) |
Returns the command line commands for the callback on this breakpoint.
[out] | command_list | The commands will be appended to this list. |
Definition at line 447 of file BreakpointOptions.cpp.
References HasCallback(), m_baton_is_command_baton, m_callback_baton_sp, and lldb_private::BreakpointOptions::CommandData::user_source.
Referenced by lldb::SBBreakpointName::GetCommandLineCommands().
const char * BreakpointOptions::GetConditionText | ( | size_t * | hash = nullptr | ) | const |
Return a pointer to the text of the condition expression.
Definition at line 474 of file BreakpointOptions.cpp.
References m_condition_text, and m_condition_text_hash.
Referenced by lldb::SBBreakpointName::GetCondition(), lldb_private::Breakpoint::GetConditionText(), and lldb_private::BreakpointLocation::GetConditionText().
void BreakpointOptions::GetDescription | ( | Stream * | s, |
lldb::DescriptionLevel | level | ||
) | const |
Definition at line 509 of file BreakpointOptions.cpp.
References lldb_private::Stream::AsRawOstream(), lldb::eDescriptionLevelBrief, lldb::eDescriptionLevelFull, lldb::eDescriptionLevelVerbose, lldb_private::Stream::EOL(), lldb_private::Stream::GetIndentLevel(), GetThreadSpecNoCreate(), lldb_private::Stream::Indent(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), m_auto_continue, m_callback_baton_sp, m_condition_text, m_enabled, m_ignore_count, m_one_shot, m_thread_spec_up, lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().
Referenced by lldb_private::BreakpointName::GetDescription(), and lldb_private::Breakpoint::GetDescription().
|
inline |
Return the current Ignore Count.
Definition at line 307 of file BreakpointOptions.h.
References m_ignore_count.
Referenced by lldb_private::Breakpoint::DecrementIgnoreCount(), lldb::SBBreakpointName::GetIgnoreCount(), lldb_private::Breakpoint::GetIgnoreCount(), lldb_private::BreakpointLocation::GetIgnoreCount(), and lldb_private::Breakpoint::SetIgnoreCount().
|
inlinestaticprotected |
Definition at line 366 of file BreakpointOptions.h.
References g_option_names.
Referenced by lldb_private::BreakpointOptions::CommandData::CreateFromStructuredData(), CreateFromStructuredData(), and SerializeToStructuredData().
|
inlinestatic |
Definition at line 133 of file BreakpointOptions.h.
Referenced by lldb_private::Breakpoint::CreateFromStructuredData(), and lldb_private::Breakpoint::SerializeToStructuredData().
ThreadSpec * BreakpointOptions::GetThreadSpec | ( | ) |
Returns a pointer to the ThreadSpec for this option, creating it.
if it hasn't been created already. This API is used for setting the ThreadSpec items for this option.
Definition at line 489 of file BreakpointOptions.cpp.
References eThreadSpec, m_set_flags, m_thread_spec_up, and lldb_private::Flags::Set().
Referenced by lldb::SBBreakpointName::GetQueueName(), lldb::SBBreakpointName::GetThreadID(), lldb::SBBreakpointName::GetThreadIndex(), lldb::SBBreakpointName::GetThreadName(), lldb_private::BreakpointOptionGroup::SetOptionValue(), lldb::SBBreakpointName::SetQueueName(), lldb_private::Breakpoint::SetQueueName(), lldb_private::BreakpointLocation::SetQueueName(), lldb_private::Breakpoint::SetThreadID(), SetThreadID(), lldb::SBBreakpointName::SetThreadIndex(), lldb_private::Breakpoint::SetThreadIndex(), lldb_private::BreakpointLocation::SetThreadIndex(), lldb::SBBreakpointName::SetThreadName(), lldb_private::Breakpoint::SetThreadName(), and lldb_private::BreakpointLocation::SetThreadName().
const ThreadSpec * BreakpointOptions::GetThreadSpecNoCreate | ( | ) | const |
Return the current thread spec for this option.
This will return nullptr if the no thread specifications have been set for this Option yet.
Definition at line 485 of file BreakpointOptions.cpp.
References m_thread_spec_up.
Referenced by lldb_private::BreakpointLocation::Dump(), GetDescription(), lldb_private::Breakpoint::GetQueueName(), lldb_private::BreakpointLocation::GetQueueName(), lldb_private::BreakpointLocation::GetThreadID(), lldb_private::Breakpoint::GetThreadID(), lldb_private::Breakpoint::GetThreadIndex(), lldb_private::BreakpointLocation::GetThreadIndex(), lldb_private::Breakpoint::GetThreadName(), and lldb_private::BreakpointLocation::GetThreadName().
bool BreakpointOptions::HasCallback | ( | ) | const |
Check if the breakpoint option has a callback set.
Definition at line 443 of file BreakpointOptions.cpp.
References m_callback.
Referenced by GetCommandLineCallbacks().
bool BreakpointOptions::InvokeCallback | ( | StoppointCallbackContext * | context, |
lldb::user_id_t | break_id, | ||
lldb::user_id_t | break_loc_id | ||
) |
Use this function to invoke the callback for a specific stop.
[in] | context | The context in which the callback is to be invoked. This includes the stop event, the execution context of the stop (since you might hit the same breakpoint on multiple threads) and whether we are currently executing synchronous or asynchronous callbacks. |
[in] | break_id | The breakpoint ID that owns this option set. |
[in] | break_loc_id | The breakpoint location ID that owns this option set. |
Definition at line 428 of file BreakpointOptions.cpp.
References lldb_private::StoppointCallbackContext::is_synchronous, IsCallbackSynchronous(), m_callback, and m_callback_baton_sp.
Referenced by lldb_private::Breakpoint::InvokeCallback().
|
inline |
Check the auto-continue state.
Definition at line 277 of file BreakpointOptions.h.
References m_auto_continue.
Referenced by lldb::SBBreakpointName::GetAutoContinue(), and lldb_private::Breakpoint::IsAutoContinue().
|
inline |
Used in InvokeCallback to tell whether it is the right time to run this kind of callback.
Definition at line 233 of file BreakpointOptions.h.
References m_callback_is_synchronous.
Referenced by InvokeCallback(), and lldb_private::BreakpointLocation::IsCallbackSynchronous().
|
inline |
Check the Enable/Disable state.
Definition at line 266 of file BreakpointOptions.h.
References m_enabled.
Referenced by lldb::SBBreakpointName::IsEnabled(), lldb_private::Breakpoint::IsEnabled(), and lldb_private::Breakpoint::SetEnabled().
|
inline |
Check the One-shot state.
Definition at line 288 of file BreakpointOptions.h.
References m_one_shot.
Referenced by lldb::SBBreakpointName::IsOneShot(), and lldb_private::Breakpoint::IsOneShot().
|
inlineprotected |
Definition at line 351 of file BreakpointOptions.h.
References m_set_flags, and lldb_private::Flags::Test().
|
static |
This is the default empty callback.
const BreakpointOptions & BreakpointOptions::operator= | ( | const BreakpointOptions & | rhs | ) |
Definition at line 143 of file BreakpointOptions.cpp.
References m_auto_continue, m_baton_is_command_baton, m_callback, m_callback_baton_sp, m_callback_is_synchronous, m_condition_text, m_condition_text_hash, m_enabled, m_ignore_count, m_inject_condition, m_one_shot, m_set_flags, and m_thread_spec_up.
|
virtual |
Definition at line 344 of file BreakpointOptions.cpp.
References AutoContinue, ConditionText, eAutoContinue, eCallback, eCondition, eEnabled, eIgnoreCount, EnabledState, eOneShot, eThreadSpec, GetKey(), lldb_private::BreakpointOptions::CommandData::GetSerializationKey(), lldb_private::ThreadSpec::GetSerializationKey(), IgnoreCount, m_auto_continue, m_baton_is_command_baton, m_callback_baton_sp, m_condition_text, m_enabled, m_ignore_count, m_one_shot, m_set_flags, m_thread_spec_up, OneShotState, and lldb_private::Flags::Test().
Referenced by lldb_private::Breakpoint::SerializeToStructuredData().
|
inline |
Set the auto-continue state.
Definition at line 280 of file BreakpointOptions.h.
References eAutoContinue, m_auto_continue, m_set_flags, and lldb_private::Flags::Set().
Referenced by lldb::SBBreakpointName::SetAutoContinue(), lldb_private::Breakpoint::SetAutoContinue(), lldb_private::BreakpointLocation::SetAutoContinue(), and lldb_private::BreakpointOptionGroup::SetOptionValue().
void BreakpointOptions::SetCallback | ( | BreakpointHitCallback | callback, |
const BreakpointOptions::CommandBatonSP & | command_baton_sp, | ||
bool | synchronous = false |
||
) |
Definition at line 403 of file BreakpointOptions.cpp.
References eCallback, m_baton_is_command_baton, m_callback, m_callback_baton_sp, m_callback_is_synchronous, m_set_flags, and lldb_private::Flags::Set().
void BreakpointOptions::SetCallback | ( | BreakpointHitCallback | callback, |
const lldb::BatonSP & | baton_sp, | ||
bool | synchronous = false |
||
) |
Adds a callback to the breakpoint option set.
[in] | callback | The function to be called when the breakpoint gets hit. |
[in] | baton_sp | A baton which will get passed back to the callback when it is invoked. |
[in] | synchronous | Whether this is a synchronous or asynchronous callback. See discussion above. |
Definition at line 383 of file BreakpointOptions.cpp.
References eCallback, m_baton_is_command_baton, m_callback, m_callback_baton_sp, m_callback_is_synchronous, m_set_flags, and lldb_private::Flags::Set().
Referenced by lldb_private::ScriptInterpreterLua::RegisterBreakpointCallback(), lldb_private::BreakpointLocation::SetCallback(), lldb_private::Breakpoint::SetCallback(), lldb::SBBreakpointName::SetCallback(), and SetCommandDataCallback().
void BreakpointOptions::SetCommandDataCallback | ( | std::unique_ptr< CommandData > & | cmd_data | ) |
Set a callback based on BreakpointOptions::CommandData.
[in] | cmd_data | A UP holding the new'ed CommandData object. The breakpoint will take ownership of pointer held by this object. |
Definition at line 591 of file BreakpointOptions.cpp.
References BreakpointOptionsCallbackFunction(), eCallback, lldb::eScriptLanguageNone, m_set_flags, lldb_private::Flags::Set(), and SetCallback().
Referenced by lldb_private::BreakpointOptionGroup::OptionParsingFinished(), and lldb::SBBreakpointName::SetCommandLineCommands().
void BreakpointOptions::SetCondition | ( | const char * | condition | ) |
Set the breakpoint option's condition.
[in] | condition | The condition expression to evaluate when the breakpoint is hit. |
Definition at line 461 of file BreakpointOptions.cpp.
References lldb_private::Flags::Clear(), eCondition, m_condition_text, m_condition_text_hash, m_set_flags, and lldb_private::Flags::Set().
Referenced by BreakpointOptions(), lldb::SBBreakpointName::SetCondition(), lldb_private::Breakpoint::SetCondition(), lldb_private::BreakpointLocation::SetCondition(), and lldb_private::BreakpointOptionGroup::SetOptionValue().
|
inline |
If enable is true, enable the breakpoint, if false disable it.
Definition at line 269 of file BreakpointOptions.h.
References eEnabled, m_enabled, m_set_flags, and lldb_private::Flags::Set().
Referenced by lldb::SBBreakpointName::SetEnabled(), lldb_private::Breakpoint::SetEnabled(), lldb_private::BreakpointLocation::SetEnabled(), and lldb_private::BreakpointOptionGroup::SetOptionValue().
|
inline |
Set the breakpoint to ignore the next count breakpoint hits.
[in] | n | The number of breakpoint hits to ignore. |
Definition at line 299 of file BreakpointOptions.h.
References eIgnoreCount, m_ignore_count, m_set_flags, and lldb_private::Flags::Set().
Referenced by lldb_private::Breakpoint::DecrementIgnoreCount(), lldb::SBBreakpointName::SetIgnoreCount(), lldb_private::Breakpoint::SetIgnoreCount(), lldb_private::BreakpointLocation::SetIgnoreCount(), and lldb_private::BreakpointOptionGroup::SetOptionValue().
|
inline |
If enable is true, enable the breakpoint, if false disable it.
Definition at line 291 of file BreakpointOptions.h.
References eOneShot, m_one_shot, m_set_flags, and lldb_private::Flags::Set().
Referenced by lldb::SBBreakpointName::SetOneShot(), lldb_private::Breakpoint::SetOneShot(), and lldb_private::BreakpointOptionGroup::SetOptionValue().
void BreakpointOptions::SetThreadID | ( | lldb::tid_t | thread_id | ) |
Definition at line 498 of file BreakpointOptions.cpp.
References eThreadSpec, GetThreadSpec(), m_set_flags, lldb_private::Flags::Set(), and lldb_private::ThreadSpec::SetTID().
Referenced by lldb_private::BreakpointOptionGroup::SetOptionValue(), lldb::SBBreakpointName::SetThreadID(), and lldb_private::BreakpointLocation::SetThreadIDInternal().
|
protected |
Definition at line 503 of file BreakpointOptions.cpp.
References eThreadSpec, m_set_flags, m_thread_spec_up, and lldb_private::Flags::Set().
|
friend |
Definition at line 31 of file BreakpointOptions.h.
|
friend |
Definition at line 28 of file BreakpointOptions.h.
|
friend |
Definition at line 29 of file BreakpointOptions.h.
|
friend |
Definition at line 30 of file BreakpointOptions.h.
|
staticprotected |
Definition at line 364 of file BreakpointOptions.h.
Referenced by GetKey().
|
private |
If set, auto-continue from breakpoint.
Definition at line 399 of file BreakpointOptions.h.
Referenced by Clear(), CopyOverSetOptions(), GetDescription(), IsAutoContinue(), operator=(), SerializeToStructuredData(), and SetAutoContinue().
|
private |
Definition at line 383 of file BreakpointOptions.h.
Referenced by Clear(), ClearCallback(), CopyOverSetOptions(), GetCommandLineCallbacks(), operator=(), SerializeToStructuredData(), and SetCallback().
|
private |
For BreakpointOptions only.
This is the callback function pointer
Definition at line 380 of file BreakpointOptions.h.
Referenced by Clear(), ClearCallback(), CopyOverSetOptions(), HasCallback(), InvokeCallback(), operator=(), and SetCallback().
|
private |
This is the client data for the callback.
Definition at line 382 of file BreakpointOptions.h.
Referenced by Clear(), ClearCallback(), CopyOverSetOptions(), GetBaton(), GetCommandLineCallbacks(), GetDescription(), InvokeCallback(), operator=(), SerializeToStructuredData(), and SetCallback().
|
private |
Definition at line 384 of file BreakpointOptions.h.
Referenced by Clear(), ClearCallback(), CopyOverSetOptions(), IsCallbackSynchronous(), operator=(), and SetCallback().
|
private |
The condition to test.
Definition at line 393 of file BreakpointOptions.h.
Referenced by BreakpointOptions(), Clear(), CopyOverSetOptions(), GetConditionText(), GetDescription(), operator=(), SerializeToStructuredData(), and SetCondition().
|
private |
Its hash, so that locations know when the condition is updated.
Definition at line 395 of file BreakpointOptions.h.
Referenced by BreakpointOptions(), CopyOverSetOptions(), GetConditionText(), operator=(), and SetCondition().
|
private |
Definition at line 385 of file BreakpointOptions.h.
Referenced by Clear(), CopyOverSetOptions(), GetDescription(), IsEnabled(), operator=(), SerializeToStructuredData(), and SetEnabled().
|
private |
Number of times to ignore this breakpoint.
Definition at line 389 of file BreakpointOptions.h.
Referenced by Clear(), CopyOverSetOptions(), GetDescription(), GetIgnoreCount(), operator=(), SerializeToStructuredData(), and SetIgnoreCount().
|
private |
If set, inject breakpoint condition into process.
Definition at line 397 of file BreakpointOptions.h.
Referenced by operator=().
|
private |
If set, the breakpoint delete itself after being hit once.
Definition at line 387 of file BreakpointOptions.h.
Referenced by Clear(), CopyOverSetOptions(), GetDescription(), IsOneShot(), operator=(), SerializeToStructuredData(), and SetOneShot().
|
private |
Which options are set at this level.
Drawn from BreakpointOptions::SetOptionsFlags.
Definition at line 402 of file BreakpointOptions.h.
Referenced by AnySet(), BreakpointOptions(), Clear(), ClearCallback(), CopyOverSetOptions(), GetThreadSpec(), IsOptionSet(), operator=(), SerializeToStructuredData(), SetAutoContinue(), SetCallback(), SetCommandDataCallback(), SetCondition(), SetEnabled(), SetIgnoreCount(), SetOneShot(), lldb_private::BreakpointOptionGroup::SetOptionValue(), SetThreadID(), and SetThreadSpec().
|
private |
Thread for which this breakpoint will stop.
Definition at line 391 of file BreakpointOptions.h.
Referenced by BreakpointOptions(), Clear(), CopyOverSetOptions(), GetDescription(), GetThreadSpec(), GetThreadSpecNoCreate(), operator=(), SerializeToStructuredData(), and SetThreadSpec().