Skip to content

Commit f7f5a88

Browse files
author
董宏昌
committed
fix #198 pblock & pproperties type erro
1 parent ccf8dd5 commit f7f5a88

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

commands/FBClassDump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def run(self, arguments, options):
111111
struct Block_literal_1 real = *((__bridge struct Block_literal_1 *)$block);
112112
NSMutableDictionary *dict = (id)[NSMutableDictionary dictionary];
113113
114-
[dict setObject:(id)[NSNumber numberWithLong:(long)real.invoke] forKey:@"invoke"];
114+
[dict setValue:(id)[NSNumber numberWithLong:(long)real.invoke] forKey:@"invoke"];
115115
116116
if (real.flags & BLOCK_HAS_SIGNATURE) {
117117
char *signature;
@@ -131,7 +131,7 @@ def run(self, arguments, options):
131131
[types addObject:(id)[NSString stringWithUTF8String:type]];
132132
}
133133
134-
[dict setObject:types forKey:@"signature"];
134+
[dict setValue:types forKey:@"signature"];
135135
}
136136
137137
RETURN(dict);

fblldbbase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def evaluateCStringExpression(expression, printErrors=True):
150150
if (!IS_JSON_OBJ(ret)) {\
151151
(void)[NSException raise:@"Invalid RETURN argument" format:@""];\
152152
}\
153-
NSDictionary *__dict = @{@"return":ret};\
153+
NSMutableDictionary *__dict = (id)[NSMutableDictionary dictionary];\
154+
[__dict setValue:(id)ret forKey:@"return"];\
154155
NSData *__data = (id)[NSJSONSerialization dataWithJSONObject:__dict options:0 error:NULL];\
155156
NSString *__str = (id)[[NSString alloc] initWithData:__data encoding:4];\
156157
(char *)[__str UTF8String];})

0 commit comments

Comments
 (0)