Skip to content

Commit e575060

Browse files
authored
Fix pivar
Some changes left `pivar` broken in a few ways, this should fix it.
1 parent d11d78a commit e575060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/FBPrintCommands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ def run(self, arguments, options):
301301
ivarTypeCommand = '((char *)ivar_getTypeEncoding((void*)object_getInstanceVariable((id){}, \"{}\", 0)))[0]'.format(object, ivarName)
302302
ivarTypeEncodingFirstChar = fb.evaluateExpression(ivarTypeCommand)
303303

304-
result = fb.evaluateExpressionValue('(({} *)({}))->{}'.format(printCommand, objectClass, object, ivarName))
305-
return result.GetObjectDescription() if '@' in ivarTypeEncodingFirstChar else result.GetValue()
304+
result = fb.evaluateExpressionValue('(({} *)({}))->{}'.format(objectClass, object, ivarName))
305+
print result.GetObjectDescription() if '@' in ivarTypeEncodingFirstChar else result
306306

307307
class FBPrintKeyPath(fb.FBCommand):
308308
def name(self):

0 commit comments

Comments
 (0)