We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f5a24d commit c72c0b2Copy full SHA for c72c0b2
lldb/source/Target/Target.cpp
@@ -1511,8 +1511,7 @@ bool Target::IgnoreWatchpointByID(lldb::watch_id_t watch_id,
1511
1512
ModuleSP Target::GetExecutableModule() {
1513
// search for the first executable in the module list
1514
- for (size_t i = 0; i < m_images.GetSize(); ++i) {
1515
- ModuleSP module_sp = m_images.GetModuleAtIndex(i);
+ for (ModuleSP module_sp : m_images.Modules()) {
1516
lldb_private::ObjectFile *obj = module_sp->GetObjectFile();
1517
if (obj == nullptr)
1518
continue;
0 commit comments