[Lldb-commits] [lldb] r204688 - Make ModuleList iterable.
Jim Ingham
jingham at apple.com
Mon Mar 24 17:12:30 PDT 2014
Author: jingham
Date: Mon Mar 24 19:12:30 2014
New Revision: 204688
URL: http://llvm.org/viewvc/llvm-project?rev=204688&view=rev
Log:
Make ModuleList iterable.
Modified:
lldb/trunk/include/lldb/Core/ModuleList.h
Modified: lldb/trunk/include/lldb/Core/ModuleList.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/ModuleList.h?rev=204688&r1=204687&r2=204688&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/ModuleList.h (original)
+++ lldb/trunk/include/lldb/Core/ModuleList.h Mon Mar 24 19:12:30 2014
@@ -15,6 +15,7 @@
#include "lldb/lldb-private.h"
#include "lldb/Host/Mutex.h"
+#include "lldb/Utility/Iterable.h"
namespace lldb_private {
@@ -577,6 +578,14 @@ protected:
Notifier* m_notifier;
+public:
+ typedef LockingAdaptedIterable<collection, lldb::ModuleSP, vector_adapter> ModuleIterable;
+ ModuleIterable
+ Modules()
+ {
+ return ModuleIterable(m_modules, GetMutex());
+ }
+
};
} // namespace lldb_private
More information about the lldb-commits
mailing list