[Lldb-commits] [lldb] r108598 - in /lldb/trunk: include/lldb/Target/Process.h source/Breakpoint/BreakpointLocation.cpp source/Target/Process.cpp
Stephen Wilson
wilsons at start.ca
Fri Jul 16 17:56:13 PDT 2010
Author: wilsons
Date: Fri Jul 16 19:56:13 2010
New Revision: 108598
URL: http://llvm.org/viewvc/llvm-project?rev=108598&view=rev
Log:
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.
Modified:
lldb/trunk/include/lldb/Target/Process.h
lldb/trunk/source/Breakpoint/BreakpointLocation.cpp
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/include/lldb/Target/Process.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/Process.h?rev=108598&r1=108597&r2=108598&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/Process.h (original)
+++ lldb/trunk/include/lldb/Target/Process.h Fri Jul 16 19:56:13 2010
@@ -1170,7 +1170,7 @@
Error
ClearBreakpointSiteByID (lldb::user_id_t break_id);
- lldb::user_id_t
+ lldb::break_id_t
CreateBreakpointSite (lldb::BreakpointLocationSP &owner,
bool use_hardware);
Modified: lldb/trunk/source/Breakpoint/BreakpointLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/BreakpointLocation.cpp?rev=108598&r1=108597&r2=108598&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/BreakpointLocation.cpp (original)
+++ lldb/trunk/source/Breakpoint/BreakpointLocation.cpp Fri Jul 16 19:56:13 2010
@@ -229,9 +229,9 @@
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)
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=108598&r1=108597&r2=108598&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Fri Jul 16 19:56:13 2010
@@ -522,7 +522,7 @@
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);
More information about the lldb-commits
mailing list