diff --git a/commands/FBClassDump.py b/commands/FBClassDump.py index 3615dd0..6ed3f81 100644 --- a/commands/FBClassDump.py +++ b/commands/FBClassDump.py @@ -111,7 +111,7 @@ def run(self, arguments, options): struct Block_literal_1 real = *((__bridge struct Block_literal_1 *)$block); NSMutableDictionary *dict = (id)[NSMutableDictionary dictionary]; - [dict setObject:(id)[NSNumber numberWithLong:(long)real.invoke] forKey:@"invoke"]; + [dict setValue:(id)[NSNumber numberWithLong:(long)real.invoke] forKey:@"invoke"]; if (real.flags & BLOCK_HAS_SIGNATURE) { char *signature; @@ -131,7 +131,7 @@ def run(self, arguments, options): [types addObject:(id)[NSString stringWithUTF8String:type]]; } - [dict setObject:types forKey:@"signature"]; + [dict setValue:types forKey:@"signature"]; } RETURN(dict); diff --git a/fblldbbase.py b/fblldbbase.py index 3a8f5b1..fd0bb8b 100755 --- a/fblldbbase.py +++ b/fblldbbase.py @@ -150,7 +150,8 @@ def evaluateCStringExpression(expression, printErrors=True): if (!IS_JSON_OBJ(ret)) {\ (void)[NSException raise:@"Invalid RETURN argument" format:@""];\ }\ - NSDictionary *__dict = @{@"return":ret};\ + NSMutableDictionary *__dict = (id)[NSMutableDictionary dictionary];\ + [__dict setValue:(id)ret forKey:@"return"];\ NSData *__data = (id)[NSJSONSerialization dataWithJSONObject:__dict options:0 error:NULL];\ NSString *__str = (id)[[NSString alloc] initWithData:__data encoding:4];\ (char *)[__str UTF8String];})