Skip to content

Commit

Permalink
Merge pull request #29 from aaronash/bugfix/dclass
Browse files Browse the repository at this point in the history
Fix no known method '-UTF8String'; error in dclass
  • Loading branch information
DerekSelander authored Jul 11, 2020
2 parents 0ce00f9 + 8308245 commit 3758267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldb_commands/dclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ def generate_class_info(options):
for (int i = 0; i < bmeth->count; i++) {
NSString *methodType = (int)class_isMetaClass((Class)dsclass) ? @"+" : @"-";
method_t *mt = (method_t*)(&bmeth->first);
[returnString appendString:(NSString*)[[NSString alloc] initWithFormat:@" %s%40s %p\n", [methodType UTF8String], mt[i].name, mt[i].imp]];
[returnString appendString:(NSString*)[[NSString alloc] initWithFormat:@" %s%40s %p\n", (const char *)[methodType UTF8String], mt[i].name, mt[i].imp]];
}
if ((int)class_isMetaClass((Class)dsclass) == NO) {
dsobjc_class* dsmetaclass = (dsobjc_class*)objc_getMetaClass(name);
Expand All @@ -1425,7 +1425,7 @@ def generate_class_info(options):
for (int i = 0; i < bmetameth->count; i++) {
NSString *methodType = (int)class_isMetaClass((Class)dsmetaclass) ? @"+" : @"-";
method_t *mt = (method_t*)(&bmetameth->first);
[returnString appendString:(NSString*)[[NSString alloc] initWithFormat:@" %s%40s %p\n", [methodType UTF8String], mt[i].name, mt[i].imp]];
[returnString appendString:(NSString*)[[NSString alloc] initWithFormat:@" %s%40s %p\n", (const char *)[methodType UTF8String], mt[i].name, mt[i].imp]];
}
}
}
Expand Down

0 comments on commit 3758267

Please sign in to comment.