From e7a083209d8fb6cd3d30f1617334a08670e89a45 Mon Sep 17 00:00:00 2001 From: Manuel Blatt Date: Wed, 21 Aug 2024 11:22:49 +0200 Subject: [PATCH] change struct __str__ to output dictionary --- decompiler/structures/pseudo/expressions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decompiler/structures/pseudo/expressions.py b/decompiler/structures/pseudo/expressions.py index cdf91b2d..268eeb05 100644 --- a/decompiler/structures/pseudo/expressions.py +++ b/decompiler/structures/pseudo/expressions.py @@ -608,9 +608,9 @@ def __hash__(self): return hash(tuple(sorted(self.value.items()))) def __str__(self) -> str: - """Return a trivial string representation of the struct.""" + """Return a string representation of the struct""" - return f"StructConstant()" + return str(self.value) def __iter__(self) -> Iterator[Expression]: yield from self.value.values()