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:
Stephen Wilson 2010-07-17 00:56:13 +00:00
parent 6b4067c14e
commit 50bd94f961
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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);