diff --git a/pytrace-generator/main.py b/pytrace-generator/main.py index 1d8d545b..7e596144 100644 --- a/pytrace-generator/main.py +++ b/pytrace-generator/main.py @@ -231,7 +231,7 @@ def store(self, address, value): except: # Just ignore it in case getattr fails continue - if should_ignore_on_heap(field, v, self.script_path): + if callable(v) or should_ignore_on_heap(field, v, self.script_path): continue prim_value = PrimitiveValue(v)