diff options
| author | Jim Ingham <jingham@apple.com> | 2010-08-31 23:51:36 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2010-08-31 23:51:36 +0000 |
| commit | 680e177833bb37e6725cae02b5ac0b6cb54d7e03 (patch) | |
| tree | de6429e173b558d0d2faf4d5866adc3832753ba7 /lldb/source | |
| parent | ea63639da509e808968839067b28ac159f979c1c (diff) | |
| download | bcm5719-llvm-680e177833bb37e6725cae02b5ac0b6cb54d7e03.tar.gz bcm5719-llvm-680e177833bb37e6725cae02b5ac0b6cb54d7e03.zip | |
Don't re-look up the symbol in ResolveSymbolContextForAddress.
llvm-svn: 112679
Diffstat (limited to 'lldb/source')
| -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) |

