From 0c02e4eaeadec31e248c41aee403df9f0e2a8d92 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 11 Aug 2011 04:30:39 +0000 Subject: [PATCH] Fix the broken build that happened with my last checkin. llvm-svn: 137300 --- lldb/source/Core/ModuleList.cpp | 4 ++-- lldb/source/Target/ThreadPlanCallFunction.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp index cf83d4b44767..f83a23571f17 100644 --- a/lldb/source/Core/ModuleList.cpp +++ b/lldb/source/Core/ModuleList.cpp @@ -113,9 +113,9 @@ size_t ModuleList::RemoveOrphans () { Mutex::Locker locker(m_modules_mutex); - collection::reverse_iterator pos = m_modules.rbegin(); + collection::iterator pos = m_modules.begin(); size_t remove_count = 0; - while (pos != m_modules.rend()) + while (pos != m_modules.end()) { if (pos->unique()) { diff --git a/lldb/source/Target/ThreadPlanCallFunction.cpp b/lldb/source/Target/ThreadPlanCallFunction.cpp index d2bd858c6dd9..b1d859ee7cfc 100644 --- a/lldb/source/Target/ThreadPlanCallFunction.cpp +++ b/lldb/source/Target/ThreadPlanCallFunction.cpp @@ -80,7 +80,7 @@ ThreadPlanCallFunction::ThreadPlanCallFunction (Thread &thread, { if (log) log->Printf ("Could not find object file for module \"%s\".", - executableModuleSP->GetFileSpec().GetFilename().AsCString()); + exe_module->GetFileSpec().GetFilename().AsCString()); return; } m_start_addr = objectFile->GetEntryPointAddress(); @@ -88,7 +88,7 @@ ThreadPlanCallFunction::ThreadPlanCallFunction (Thread &thread, { if (log) log->Printf ("Could not find entry point address for executable module \"%s\".", - executableModuleSP->GetFileSpec().GetFilename().AsCString()); + exe_module->GetFileSpec().GetFilename().AsCString()); return; } } @@ -196,7 +196,7 @@ ThreadPlanCallFunction::ThreadPlanCallFunction (Thread &thread, { if (log) log->Printf ("Could not find object file for module \"%s\".", - executableModuleSP->GetFileSpec().GetFilename().AsCString()); + exe_module->GetFileSpec().GetFilename().AsCString()); return; } m_start_addr = objectFile->GetEntryPointAddress();