|
LLDB mainline
|
#include <SBBreakpoint.h>
Static Public Member Functions | |
| static bool | EventIsBreakpointEvent (const lldb::SBEvent &event) |
| static lldb::BreakpointEventType | GetBreakpointEventTypeFromEvent (const lldb::SBEvent &event) |
| static lldb::SBBreakpoint | GetBreakpointFromEvent (const lldb::SBEvent &event) |
| static lldb::SBBreakpointLocation | GetBreakpointLocationAtIndexFromEvent (const lldb::SBEvent &event, uint32_t loc_idx) |
| static uint32_t | GetNumBreakpointLocationsFromEvent (const lldb::SBEvent &event_sp) |
Private Member Functions | |
| SBBreakpoint (const lldb::BreakpointSP &bp_sp) | |
| lldb::BreakpointSP | GetSP () const |
Private Attributes | |
| lldb::BreakpointWP | m_opaque_wp |
Friends | |
| class | SBBreakpointList |
| class | SBBreakpointLocation |
| class | SBBreakpointName |
| class | SBTarget |
| class | lldb_private::ScriptInterpreterBridge |
| class | lldb_private::python::SWIGBridge |
Definition at line 25 of file SBBreakpoint.h.
| SBBreakpoint::SBBreakpoint | ( | ) |
Definition at line 48 of file SBBreakpoint.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by GetBreakpointFromEvent(), LLDB_DEPRECATED_FIXME(), lldb_private::python::SWIGBridge, operator=(), and SBBreakpoint().
| SBBreakpoint::SBBreakpoint | ( | const lldb::SBBreakpoint & | rhs | ) |
Definition at line 50 of file SBBreakpoint.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_wp, and SBBreakpoint().
|
default |
References ClearAllBreakpointSites(), FindLocationByAddress(), FindLocationByID(), FindLocationIDByAddress(), GetAutoContinue(), GetCommandLineCommands(), GetCondition(), GetConditionMode(), GetHitCount(), GetID(), GetIgnoreCount(), GetLocationAtIndex(), GetQueueName(), GetTarget(), GetThreadID(), GetThreadIndex(), GetThreadName(), IsEnabled(), IsInternal(), IsOneShot(), IsValid(), operator!=(), operator=(), operator==(), SetAutoContinue(), SetCallback(), SetCommandLineCommands(), SetCondition(), SetConditionMode(), SetEnabled(), SetIgnoreCount(), SetOneShot(), SetQueueName(), SetScriptCallbackBody(), SetScriptCallbackFunction(), SetThreadID(), SetThreadIndex(), and SetThreadName().
|
private |
Definition at line 55 of file SBBreakpoint.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_wp.
| SBBreakpointLocation SBBreakpoint::AddFacadeLocation | ( | ) |
Add a "Facade location" to the breakpoint.
This returns the Facade Location that was added, which you can then use in get_location_description and was_hit in your breakpoint resolver. Can only be called from a ScriptedBreakpointResolver.
Definition at line 603 of file SBBreakpoint.cpp.
References GetSP(), and SBBreakpointLocation.
Referenced by LLDB_DEPRECATED_FIXME().
Adds a location to the breakpoint at the address passed in.
Can only be called from a ScriptedBreakpointResolver...
Definition at line 569 of file SBBreakpoint.cpp.
References lldb_private::Address::Dump(), lldb_private::Address::DumpStyleModuleWithFileAddress, error(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb::SBAddress::get(), lldb_private::StreamString::GetData(), GetSP(), lldb::SBAddress::IsValid(), LLDB_INSTRUMENT_VA, and lldb::SBAddress::ref().
Referenced by LLDB_DEPRECATED_FIXME().
| SBError SBBreakpoint::AddNameWithErrorHandling | ( | const char * | new_name | ) |
Definition at line 702 of file SBBreakpoint.cpp.
References error(), lldb_private::Status::FromErrorString(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBError::SetError().
Referenced by LLDB_DEPRECATED_FIXME().
| void SBBreakpoint::ClearAllBreakpointSites | ( | ) |
Definition at line 118 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
|
static |
Definition at line 764 of file SBBreakpoint.cpp.
References lldb::SBEvent::get(), lldb_private::Breakpoint::BreakpointEventData::GetEventDataFromEvent(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| SBBreakpointLocation SBBreakpoint::FindLocationByAddress | ( | lldb::addr_t | vm_addr | ) |
Definition at line 129 of file SBBreakpoint.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, lldb_private::Target::ResolveLoadAddress(), SBBreakpointLocation, lldb::SBBreakpointLocation::SetLocation(), and lldb_private::Address::SetRawAddress().
Referenced by ~SBBreakpoint().
| SBBreakpointLocation SBBreakpoint::FindLocationByID | ( | lldb::break_id_t | bp_loc_id | ) |
Definition at line 170 of file SBBreakpoint.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, SBBreakpointLocation, and lldb::SBBreakpointLocation::SetLocation().
Referenced by ~SBBreakpoint().
| break_id_t SBBreakpoint::FindLocationIDByAddress | ( | lldb::addr_t | vm_addr | ) |
Definition at line 150 of file SBBreakpoint.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, LLDB_INVALID_BREAK_ID, lldb_private::Target::ResolveLoadAddress(), and lldb_private::Address::SetRawAddress().
Referenced by ~SBBreakpoint().
| bool SBBreakpoint::GetAutoContinue | ( | ) |
Definition at line 336 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
|
static |
Definition at line 772 of file SBBreakpoint.cpp.
References lldb_private::Breakpoint::BreakpointEventData::GetBreakpointEventTypeFromEvent(), lldb::SBEvent::GetSP(), lldb::SBEvent::IsValid(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
|
static |
Definition at line 781 of file SBBreakpoint.cpp.
References lldb_private::Breakpoint::BreakpointEventData::GetBreakpointFromEvent(), lldb::SBEvent::GetSP(), lldb::SBEvent::IsValid(), LLDB_INSTRUMENT_VA, and SBBreakpoint().
Referenced by LLDB_DEPRECATED_FIXME().
|
static |
Definition at line 791 of file SBBreakpoint.cpp.
References lldb_private::Breakpoint::BreakpointEventData::GetBreakpointLocationAtIndexFromEvent(), lldb::SBEvent::GetSP(), lldb::SBEvent::IsValid(), LLDB_INSTRUMENT_VA, SBBreakpointLocation, and lldb::SBBreakpointLocation::SetLocation().
Referenced by LLDB_DEPRECATED_FIXME().
| bool SBBreakpoint::GetCommandLineCommands | ( | SBStringList & | commands | ) |
Definition at line 529 of file SBBreakpoint.cpp.
References lldb::SBStringList::AppendList(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| const char * SBBreakpoint::GetCondition | ( | ) |
Definition at line 287 of file SBBreakpoint.cpp.
References lldb_private::GetDebuggerStringPool(), GetSP(), lldb_private::StopCondition::GetText(), lldb_private::StringPoolRef::Intern(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| lldb::BreakpointConditionMode SBBreakpoint::GetConditionMode | ( | ) |
Definition at line 313 of file SBBreakpoint.cpp.
References lldb::eBreakpointConditionModeDefault, GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| bool SBBreakpoint::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 543 of file SBBreakpoint.cpp.
References GetDescription(), and LLDB_INSTRUMENT_VA.
Referenced by GetDescription(), and LLDB_DEPRECATED_FIXME().
| bool SBBreakpoint::GetDescription | ( | lldb::SBStream & | description, |
| bool | include_locations ) |
Definition at line 549 of file SBBreakpoint.cpp.
References lldb::SBStream::get(), GetSP(), and LLDB_INSTRUMENT_VA.
| uint32_t SBBreakpoint::GetHitCount | ( | ) | const |
Definition at line 348 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| break_id_t SBBreakpoint::GetID | ( | ) | const |
Definition at line 91 of file SBBreakpoint.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_BREAK_ID.
Referenced by ~SBBreakpoint().
| uint32_t SBBreakpoint::GetIgnoreCount | ( | ) | const |
Definition at line 362 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| SBBreakpointLocation SBBreakpoint::GetLocationAtIndex | ( | uint32_t | index | ) |
Definition at line 185 of file SBBreakpoint.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, SBBreakpointLocation, and lldb::SBBreakpointLocation::SetLocation().
Referenced by ~SBBreakpoint().
| void SBBreakpoint::GetNames | ( | SBStringList & | names | ) |
Definition at line 748 of file SBBreakpoint.cpp.
References lldb::SBStringList::AppendString(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
|
static |
Definition at line 804 of file SBBreakpoint.cpp.
References lldb_private::Breakpoint::BreakpointEventData::GetNumBreakpointLocationsFromEvent(), lldb::SBEvent::GetSP(), lldb::SBEvent::IsValid(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| size_t SBBreakpoint::GetNumLocations | ( | ) | const |
Definition at line 499 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| size_t SBBreakpoint::GetNumResolvedLocations | ( | ) | const |
Definition at line 486 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| const char * SBBreakpoint::GetQueueName | ( | ) | const |
Definition at line 469 of file SBBreakpoint.cpp.
References lldb_private::GetDebuggerStringPool(), GetSP(), lldb_private::StringPoolRef::Intern(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
|
private |
Definition at line 836 of file SBBreakpoint.cpp.
References m_opaque_wp.
Referenced by AddFacadeLocation(), AddLocation(), AddNameWithErrorHandling(), lldb::SBBreakpointList::AppendIfUnique(), ClearAllBreakpointSites(), FindLocationByAddress(), FindLocationByID(), FindLocationIDByAddress(), GetAutoContinue(), GetCommandLineCommands(), GetCondition(), GetConditionMode(), GetDescription(), GetHitCount(), GetID(), GetIgnoreCount(), GetLocationAtIndex(), GetNames(), GetNumLocations(), GetNumResolvedLocations(), GetQueueName(), GetTarget(), GetThreadID(), GetThreadIndex(), GetThreadName(), IsEnabled(), IsHardware(), IsInternal(), IsOneShot(), lldb_private::python::SWIGBridge, MatchesName(), operator bool(), RemoveName(), lldb::SBBreakpointName::SBBreakpointName(), SerializeToStructuredData(), SetAutoContinue(), SetCallback(), SetCommandLineCommands(), SetCondition(), SetConditionMode(), SetEnabled(), SetIgnoreCount(), SetIsHardware(), SetOneShot(), SetQueueName(), SetScriptCallbackBody(), SetScriptCallbackFunction(), SetThreadID(), SetThreadIndex(), and SetThreadName().
| SBTarget SBBreakpoint::GetTarget | ( | ) | const |
Definition at line 81 of file SBBreakpoint.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and SBTarget.
Referenced by ~SBBreakpoint().
| lldb::tid_t SBBreakpoint::GetThreadID | ( | ) |
Definition at line 387 of file SBBreakpoint.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_THREAD_ID.
Referenced by ~SBBreakpoint().
| uint32_t SBBreakpoint::GetThreadIndex | ( | ) | const |
Definition at line 412 of file SBBreakpoint.cpp.
References lldb_private::ThreadSpec::GetIndex(), GetSP(), LLDB_INSTRUMENT_VA, and UINT32_MAX.
Referenced by ~SBBreakpoint().
| const char * SBBreakpoint::GetThreadName | ( | ) | const |
Definition at line 441 of file SBBreakpoint.cpp.
References lldb_private::GetDebuggerStringPool(), GetSP(), lldb_private::StringPoolRef::Intern(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| bool SBBreakpoint::IsEnabled | ( | ) |
Definition at line 212 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| bool SBBreakpoint::IsHardware | ( | ) | const |
Definition at line 815 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| bool SBBreakpoint::IsInternal | ( | ) |
Definition at line 248 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| bool SBBreakpoint::IsOneShot | ( | ) | const |
Definition at line 236 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| bool SBBreakpoint::IsValid | ( | ) | const |
Definition at line 102 of file SBBreakpoint.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by lldb::SBBreakpointList::Append(), lldb::SBBreakpointList::AppendIfUnique(), lldb::SBBreakpointName::SBBreakpointName(), and ~SBBreakpoint().
| lldb::SBBreakpoint::LLDB_DEPRECATED_FIXME | ( | "Doesn't provide error handling" | , |
| "AddNameWithErrorHandling" | ) const |
References AddFacadeLocation(), AddLocation(), AddNameWithErrorHandling(), EventIsBreakpointEvent(), GetBreakpointEventTypeFromEvent(), GetBreakpointFromEvent(), GetBreakpointLocationAtIndexFromEvent(), GetDescription(), GetNames(), GetNumBreakpointLocationsFromEvent(), GetNumLocations(), GetNumResolvedLocations(), IsHardware(), MatchesName(), RemoveName(), SBBreakpoint(), SBBreakpointLocation, SerializeToStructuredData(), and SetIsHardware().
| bool SBBreakpoint::MatchesName | ( | const char * | name | ) |
Definition at line 734 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
|
explicit |
Definition at line 106 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
| bool SBBreakpoint::operator!= | ( | const lldb::SBBreakpoint & | rhs | ) |
Definition at line 75 of file SBBreakpoint.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_wp.
Referenced by ~SBBreakpoint().
| const SBBreakpoint & SBBreakpoint::operator= | ( | const lldb::SBBreakpoint & | rhs | ) |
Definition at line 62 of file SBBreakpoint.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_wp, and SBBreakpoint().
Referenced by ~SBBreakpoint().
| bool SBBreakpoint::operator== | ( | const lldb::SBBreakpoint & | rhs | ) |
Definition at line 69 of file SBBreakpoint.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_wp.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::RemoveName | ( | const char * | name_to_remove | ) |
Definition at line 721 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| SBStructuredData SBBreakpoint::SerializeToStructuredData | ( | ) |
Definition at line 612 of file SBBreakpoint.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBStructuredData::m_impl_up.
Referenced by LLDB_DEPRECATED_FIXME().
| void SBBreakpoint::SetAutoContinue | ( | bool | auto_continue | ) |
Definition at line 325 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetCallback | ( | SBBreakpointHitCallback | callback, |
| void * | baton ) |
Definition at line 626 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetCommandLineCommands | ( | SBStringList & | commands | ) |
Definition at line 512 of file SBBreakpoint.cpp.
References lldb::eScriptLanguageNone, lldb::SBStringList::GetSize(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetCondition | ( | const char * | condition | ) |
Definition at line 272 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetConditionMode | ( | lldb::BreakpointConditionMode | mode | ) |
Definition at line 302 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetEnabled | ( | bool | enable | ) |
Definition at line 200 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetIgnoreCount | ( | uint32_t | count | ) |
Definition at line 260 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| lldb::SBError SBBreakpoint::SetIsHardware | ( | bool | is_hardware | ) |
Make this breakpoint a hardware breakpoint.
This will replace all existing breakpoint locations with hardware breakpoints. Returns an error if this fails, e.g. when there aren't enough hardware resources available.
Definition at line 824 of file SBBreakpoint.cpp.
References lldb_private::Status::FromError(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBError.
Referenced by LLDB_DEPRECATED_FIXME().
| void SBBreakpoint::SetOneShot | ( | bool | one_shot | ) |
Definition at line 224 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetQueueName | ( | const char * | queue_name | ) |
Definition at line 458 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| SBError SBBreakpoint::SetScriptCallbackBody | ( | const char * | script_body_text | ) |
Definition at line 672 of file SBBreakpoint.cpp.
References error(), lldb_private::Status::FromError(), lldb_private::Status::FromErrorString(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBError::SetError().
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetScriptCallbackFunction | ( | const char * | callback_function_name | ) |
Definition at line 641 of file SBBreakpoint.cpp.
References LLDB_INSTRUMENT_VA, and SetScriptCallbackFunction().
Referenced by SetScriptCallbackFunction(), and ~SBBreakpoint().
| SBError SBBreakpoint::SetScriptCallbackFunction | ( | const char * | callback_function_name, |
| SBStructuredData & | extra_args ) |
Definition at line 648 of file SBBreakpoint.cpp.
References error(), lldb_private::Status::FromError(), lldb_private::Status::FromErrorString(), GetSP(), LLDB_INSTRUMENT_VA, lldb::SBStructuredData::m_impl_up, and lldb::SBError::SetError().
| void SBBreakpoint::SetThreadID | ( | lldb::tid_t | sb_thread_id | ) |
Definition at line 376 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetThreadIndex | ( | uint32_t | index | ) |
Definition at line 401 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
| void SBBreakpoint::SetThreadName | ( | const char * | thread_name | ) |
Definition at line 429 of file SBBreakpoint.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBBreakpoint().
|
friend |
Definition at line 179 of file SBBreakpoint.h.
References GetSP(), lldb_private::python::SWIGBridge, and SBBreakpoint().
Referenced by lldb_private::python::SWIGBridge.
|
friend |
Definition at line 178 of file SBBreakpoint.h.
References lldb_private::ScriptInterpreterBridge.
Referenced by lldb_private::ScriptInterpreterBridge.
|
friend |
Definition at line 173 of file SBBreakpoint.h.
References SBBreakpointList.
Referenced by SBBreakpointList.
|
friend |
Definition at line 174 of file SBBreakpoint.h.
References SBBreakpointLocation.
Referenced by AddFacadeLocation(), FindLocationByAddress(), FindLocationByID(), GetBreakpointLocationAtIndexFromEvent(), GetLocationAtIndex(), LLDB_DEPRECATED_FIXME(), and SBBreakpointLocation.
|
friend |
Definition at line 175 of file SBBreakpoint.h.
References SBBreakpointName.
Referenced by SBBreakpointName.
|
friend |
Definition at line 176 of file SBBreakpoint.h.
References SBTarget.
Referenced by GetTarget(), and SBTarget.
|
private |
Definition at line 185 of file SBBreakpoint.h.
Referenced by lldb::SBBreakpointList::Append(), lldb_private::ScriptInterpreterBridge::GetBreakpoint(), GetSP(), operator!=(), operator=(), operator==(), SBBreakpoint(), and SBBreakpoint().