From ec5acd622aa48e7b87f6246e774983a7652c0acd Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 30 Mar 2021 12:08:21 -0400 Subject: Add ability to query for database backing of specific BinaryViewTypes and fix state initialization. --- binaryview.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index 86878f8c..444229c5 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1120,12 +1120,6 @@ bool BinaryView::IsAnalysisChanged() const } -bool BinaryView::IsBackedByDatabase() const -{ - return m_file->IsBackedByDatabase(); -} - - bool BinaryView::CreateDatabase(const string& path, Ref settings) { auto parent = GetParentView(); @@ -1865,7 +1859,7 @@ void BinaryView::RemoveUserDataReference(uint64_t fromAddr, uint64_t toAddr) vector BinaryView::GetCodeReferencesForType(const QualifiedName& type) { size_t count; - + BNQualifiedName nameObj = type.GetAPIObject(); BNReferenceSource* refs = BNGetCodeReferencesForType(m_object, &nameObj, &count); QualifiedName::FreeAPIObject(&nameObj); @@ -1902,7 +1896,7 @@ vector BinaryView::GetDataReferencesForType(const QualifiedName& type) vector BinaryView::GetTypeReferencesForType(const QualifiedName& type) { size_t count; - + BNQualifiedName nameObj = type.GetAPIObject(); BNTypeReferenceSource* refs = BNGetTypeReferencesForType(m_object, &nameObj, &count); QualifiedName::FreeAPIObject(&nameObj); -- cgit v1.3.1