diff options
-rw-r--r-- | lldb/source/Core/Module.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 1e9187baf1a..ffa80296f3d 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -215,8 +215,8 @@ Module::ResolveSymbolContextForAddress (const Address& so_addr, uint32_t resolve resolved_flags |= symbols->ResolveSymbolContext (so_addr, resolve_scope, sc); } - // Resolve the symbol if requested - if (resolve_scope & eSymbolContextSymbol) + // Resolve the symbol if requested, but don't re-look it up if we've already found it. + if (resolve_scope & eSymbolContextSymbol && !(resolved_flags & eSymbolContextSymbol)) { ObjectFile* ofile = GetObjectFile(); if (ofile) |