File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -552,9 +552,9 @@ bool DynamicLoaderFreeBSDKernel::ParseKmods(Address linker_files_head_addr) {
552
552
m_process->GetTarget ().ModulesDidUnload (remove_modules, false );
553
553
554
554
for (KModImageInfo &image_info : linker_files_list) {
555
- if ( m_kld_name_to_uuid.find (image_info.GetName ()) !=
556
- m_kld_name_to_uuid.end ())
557
- image_info.SetUUID (m_kld_name_to_uuid[image_info. GetName ()] );
555
+ auto it = m_kld_name_to_uuid.find (image_info.GetName ());
556
+ if (it != m_kld_name_to_uuid.end ())
557
+ image_info.SetUUID (it-> second );
558
558
bool failed_to_load = false ;
559
559
if (!image_info.LoadImageUsingMemoryModule (m_process)) {
560
560
image_info.LoadImageUsingFileAddress (m_process);
You can’t perform that action at this time.
0 commit comments