diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-07-07 01:24:12 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-07-07 01:24:12 +0000 |
| commit | 7820bd1e52167367edd9ec269cd8a89095756eb1 (patch) | |
| tree | b05cc6d2041de6086f66657510ea3fe5da8dcb63 /lldb/source/Plugins/DynamicLoader/Static | |
| parent | 9407302d37cdcb8f2b3a64e956b495f4ec746887 (diff) | |
| download | bcm5719-llvm-7820bd1e52167367edd9ec269cd8a89095756eb1.tar.gz bcm5719-llvm-7820bd1e52167367edd9ec269cd8a89095756eb1.zip | |
<rdar://problem/11357711>
Fixed a crasher where the section load list was not thread safe.
llvm-svn: 159884
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Static')
| -rw-r--r-- | lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp b/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp index abfbf1c9ab6..ef79001fe76 100644 --- a/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp +++ b/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp @@ -126,10 +126,10 @@ DynamicLoaderStatic::LoadAllImagesAtFileAddresses () // Iterate through the object file sections to find the // first section that starts of file offset zero and that // has bytes in the file... - Section *section = section_list->GetSectionAtIndex (sect_idx).get(); - if (section) + SectionSP section_sp (section_list->GetSectionAtIndex (sect_idx)); + if (section_sp) { - if (m_process->GetTarget().GetSectionLoadList().SetSectionLoadAddress (section, section->GetFileAddress())) + if (m_process->GetTarget().GetSectionLoadList().SetSectionLoadAddress (section_sp, section_sp->GetFileAddress())) changed = true; } } |

