From 005e3cd3d6b74b660b36c2e8a2852b4adc8ee97a Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 14 Nov 2023 17:56:20 -0500 Subject: [PATCH] Remove member fields from graphviz output --- src/plugin.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/plugin.cpp b/src/plugin.cpp index cd090d4..ac68865 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -236,15 +236,9 @@ void GenerateConstructorGraphViz(BinaryView* view) continue; } - auto classTypeStruct = view->GetTypeById(classNamedType->GetNamedTypeReference()->GetTypeId())->GetStructure(); - for (auto classMember : classTypeStruct->GetMembersIncludingInherited(view->GetTypeContainer())) - { - // TODO: Handle inherited by adding an arrow to the real struct i guess? (use ports?) - out << "|{0x" << IntToHex(classMember.member.offset) << "|" << classMember.member.name << "}"; - } - out << "}\"];\n"; + auto classTypeStruct = view->GetTypeById(classNamedType->GetNamedTypeReference()->GetTypeId())->GetStructure(); for (auto baseStruct : classTypeStruct->GetBaseStructures()) { out << '"' << className << "\"->\"" << baseStruct.type->GetName().GetString() << "\";\n";