mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
<rdar://problem/15367122>
Fixed the test case for "test/functionalities/exec/TestExec.py" on Darwin. The issue was breakpoints were persisting and causing problems. When we exec, we need to clear out the process and target and start fresh with nothing and let the breakpoints populate themselves again. This patch correctly clears out the breakpoints and also flushes the process so that the objects (process/thread/frame) give out valid information. llvm-svn: 194106
This commit is contained in:
@@ -204,13 +204,13 @@ BreakpointList::GetBreakpointAtIndex (size_t i) const
|
||||
}
|
||||
|
||||
void
|
||||
BreakpointList::UpdateBreakpoints (ModuleList& module_list, bool added)
|
||||
BreakpointList::UpdateBreakpoints (ModuleList& module_list, bool added, bool delete_locations)
|
||||
{
|
||||
Mutex::Locker locker(m_mutex);
|
||||
bp_collection::iterator end = m_breakpoints.end();
|
||||
bp_collection::iterator pos;
|
||||
for (pos = m_breakpoints.begin(); pos != end; ++pos)
|
||||
(*pos)->ModulesChanged (module_list, added);
|
||||
(*pos)->ModulesChanged (module_list, added, delete_locations);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user