summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Breakpoint')
-rw-r--r--lldb/source/Breakpoint/BreakpointLocationCollection.cpp7
-rw-r--r--lldb/source/Breakpoint/BreakpointSiteList.cpp8
2 files changed, 7 insertions, 8 deletions
diff --git a/lldb/source/Breakpoint/BreakpointLocationCollection.cpp b/lldb/source/Breakpoint/BreakpointLocationCollection.cpp
index af3f8e54be7..870686a9e4d 100644
--- a/lldb/source/Breakpoint/BreakpointLocationCollection.cpp
+++ b/lldb/source/Breakpoint/BreakpointLocationCollection.cpp
@@ -138,11 +138,10 @@ bool
BreakpointLocationCollection::ShouldStop (StoppointCallbackContext *context)
{
bool shouldStop = false;
-
const size_t count = GetSize();
- for (size_t i = 0; i < count; i++) {
- bool one_result = GetByIndex(i)->ShouldStop(context);
- if (one_result)
+ for (size_t i = 0; i < count; i++)
+ {
+ if (GetByIndex(i)->ShouldStop(context))
shouldStop = true;
}
return shouldStop;
diff --git a/lldb/source/Breakpoint/BreakpointSiteList.cpp b/lldb/source/Breakpoint/BreakpointSiteList.cpp
index 9a5ee92f37b..155c8a7d7bc 100644
--- a/lldb/source/Breakpoint/BreakpointSiteList.cpp
+++ b/lldb/source/Breakpoint/BreakpointSiteList.cpp
@@ -49,15 +49,15 @@ BreakpointSiteList::Add(const BreakpointSiteSP &bp)
}
bool
-BreakpointSiteList::ShouldStop (StoppointCallbackContext *context, lldb::break_id_t break_id)
+BreakpointSiteList::ShouldStop (StoppointCallbackContext *context, lldb::break_id_t site_id)
{
- BreakpointSiteSP bp = FindByID (break_id);
- if (bp)
+ BreakpointSiteSP site_sp (FindByID (site_id));
+ if (site_sp)
{
// Let the BreakpointSite decide if it should stop here (could not have
// reached it's target hit count yet, or it could have a callback
// that decided it shouldn't stop (shared library loads/unloads).
- return bp->ShouldStop (context);
+ return site_sp->ShouldStop (context);
}
// We should stop here since this BreakpointSite isn't valid anymore or it
// doesn't exist.
OpenPOWER on IntegriCloud