Skip to content

Commit

Permalink
Shows rpaths in output now, for Xcode and other developer tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
nygard committed Jun 30, 2009
1 parent bb77d6b commit cfb4201
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CDClassDumpVisitor.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#import "CDMachOFile.h"
#import "CDOCProtocol.h"
#import "CDLCDylib.h"
#import "CDLCRunPath.h"
#import "CDOCClass.h"
#import "CDOCCategory.h"
#import "CDSymbolReferences.h"
Expand Down Expand Up @@ -63,6 +64,14 @@ - (void)visitObjectiveCProcessor:(CDObjectiveCProcessor *)aProcessor;
[identifier formattedCurrentVersion], [identifier formattedCompatibilityVersion]];
}

for (CDLoadCommand *loadCommand in [machOFile loadCommands]) {
if ([loadCommand isKindOfClass:[CDLCRunPath class]]) {
CDLCRunPath *runPath = (CDLCRunPath *)loadCommand;

[resultString appendFormat:@" * Run path: %@\n", [runPath path]];
}
}

if ([machOFile hasProtectedSegments]) {
[resultString appendString:@" * (This file has protected segments, decrypting.)\n"];
}
Expand Down

0 comments on commit cfb4201

Please sign in to comment.