Skip to content

Commit

Permalink
Return cached class when available
Browse files Browse the repository at this point in the history
  • Loading branch information
0xced committed Dec 10, 2013
1 parent f7c1da8 commit 68a6e41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/CDObjectiveC2Processor.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ - (CDOCClass *)loadClassAtAddress:(uint64_t)address;
if (address == 0)
return nil;

CDOCClass *class = [self classWithAddress:address];
if (class)
return class;

//NSLog(@"%s, address=%016lx", __cmd, address);

CDMachOFileDataCursor *cursor = [[CDMachOFileDataCursor alloc] initWithFile:self.machOFile address:address];
Expand Down

0 comments on commit 68a6e41

Please sign in to comment.