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 45781f1 commit 8c0c768Copy full SHA for 8c0c768
lldb/source/Target/Target.cpp
@@ -1452,8 +1452,7 @@ bool Target::IgnoreWatchpointByID(lldb::watch_id_t watch_id,
1452
1453
ModuleSP Target::GetExecutableModule() {
1454
// search for the first executable in the module list
1455
- for (size_t i = 0; i < m_images.GetSize(); ++i) {
1456
- ModuleSP module_sp = m_images.GetModuleAtIndex(i);
+ for (ModuleSP module_sp : m_images.Modules()) {
1457
lldb_private::ObjectFile *obj = module_sp->GetObjectFile();
1458
if (obj == nullptr)
1459
continue;
0 commit comments