diff options
| author | Mason Reed <mason@vector35.com> | 2025-04-08 14:16:05 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-08 14:16:16 -0400 |
| commit | 0f26e9236d52e5e2f0a8e64114d954a516cbeb95 (patch) | |
| tree | 3f011a89ae1f486eec1641a5c01a9dfc392086ba /view/sharedcache/core/SharedCache.h | |
| parent | a45466fc3227c615c72e77eb7368d7e83220b325 (diff) | |
[SharedCache] Apply demangled names and types more broadly
Fixes the case of stub functions being applied with mangled names.
Diffstat (limited to 'view/sharedcache/core/SharedCache.h')
| -rw-r--r-- | view/sharedcache/core/SharedCache.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/view/sharedcache/core/SharedCache.h b/view/sharedcache/core/SharedCache.h index 3211b90c..0bf04776 100644 --- a/view/sharedcache/core/SharedCache.h +++ b/view/sharedcache/core/SharedCache.h @@ -31,8 +31,10 @@ struct CacheSymbol CacheSymbol& operator=(CacheSymbol&& other) noexcept = default; + std::pair<std::string, BinaryNinja::Ref<BinaryNinja::Type>> DemangledName(BinaryNinja::BinaryView& view) const; + // NOTE: you should really only call this when adding the symbol to the view. - BinaryNinja::Ref<BinaryNinja::Symbol> ToBNSymbol(BinaryNinja::BinaryView& view) const; + std::pair<BinaryNinja::Ref<BinaryNinja::Symbol>, BinaryNinja::Ref<BinaryNinja::Type>> GetBNSymbolAndType(BinaryNinja::BinaryView& view) const; }; enum class CacheRegionType @@ -151,11 +153,8 @@ public: CacheEntry& operator=(CacheEntry&&) = default; // Construct a cache entry from the file on disk. - // TODO: Seperate this out a bit more. static std::optional<CacheEntry> FromFile(const std::string& filePath, const std::string& fileName, CacheEntryType type); - // TODO: From Project file? - WeakFileAccessor GetAccessor() const; // Get the headers virtual address. |
