forked from OSchip/llvm-project
Have Process::CreateBreakpointSite return a break_id_t instead of a user_id_t.
Also, update BreakpointLocation::ResolveBreakpointSite to check for invalid breakpoint ID's using the proper magic constant. llvm-svn: 108598
This commit is contained in:
parent
6b4067c14e
commit
50bd94f961
|
@ -1170,7 +1170,7 @@ public:
|
|||
Error
|
||||
ClearBreakpointSiteByID (lldb::user_id_t break_id);
|
||||
|
||||
lldb::user_id_t
|
||||
lldb::break_id_t
|
||||
CreateBreakpointSite (lldb::BreakpointLocationSP &owner,
|
||||
bool use_hardware);
|
||||
|
||||
|
|
|
@ -229,9 +229,9 @@ BreakpointLocation::ResolveBreakpointSite ()
|
|||
|
||||
BreakpointLocationSP myself_sp(m_owner.GetLocationSP (this));
|
||||
|
||||
lldb::user_id_t new_id = process->CreateBreakpointSite (myself_sp, false);
|
||||
lldb::break_id_t new_id = process->CreateBreakpointSite (myself_sp, false);
|
||||
|
||||
if (new_id == LLDB_INVALID_UID)
|
||||
if (new_id == LLDB_INVALID_BREAK_ID)
|
||||
{
|
||||
Log *log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_BREAKPOINTS);
|
||||
if (log)
|
||||
|
|
|
@ -522,7 +522,7 @@ Process::EnableBreakpointSiteByID (lldb::user_id_t break_id)
|
|||
return error;
|
||||
}
|
||||
|
||||
lldb::user_id_t
|
||||
lldb::break_id_t
|
||||
Process::CreateBreakpointSite (BreakpointLocationSP &owner, bool use_hardware)
|
||||
{
|
||||
const addr_t load_addr = owner->GetAddress().GetLoadAddress (this);
|
||||
|
|
Loading…
Reference in New Issue