summaryrefslogtreecommitdiff
path: root/view/sharedcache/api/sharedcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/api/sharedcache.cpp')
-rw-r--r--view/sharedcache/api/sharedcache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/sharedcache/api/sharedcache.cpp b/view/sharedcache/api/sharedcache.cpp
index d1ec680d..d90f2799 100644
--- a/view/sharedcache/api/sharedcache.cpp
+++ b/view/sharedcache/api/sharedcache.cpp
@@ -107,6 +107,7 @@ CacheSymbol SymbolFromApi(BNSharedCacheSymbol apiSymbol)
symbol.name = apiSymbol.name;
symbol.address = apiSymbol.address;
symbol.type = apiSymbol.symbolType;
+ symbol.binding = apiSymbol.symbolBinding;
return symbol;
}
@@ -140,7 +141,7 @@ std::pair<std::string, Ref<Type>> CacheSymbol::DemangledName(BinaryView &view) c
Ref<Symbol> CacheSymbol::GetBNSymbol(BinaryView &view) const
{
auto [shortName, _] = DemangledName(view);
- return new Symbol(type, shortName, shortName, name, address, nullptr);
+ return new Symbol(type, shortName, shortName, name, address, binding);
}
std::string SharedCacheAPI::GetSymbolTypeAsString(const BNSymbolType &type)