Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: class-dump/src/CDLCPreboundDylib.m

Issue 7793008: Add the 3.3.3 sources for class-dump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « class-dump/src/CDLCPreboundDylib.h ('k') | class-dump/src/CDLCRoutines32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // -*- mode: ObjC -*-
2
3 // This file is part of class-dump, a utility for examining the Objective-C seg ment of Mach-O files.
4 // Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard.
5
6 #import "CDLCPreboundDylib.h"
7
8 #import "CDFatFile.h"
9 #import "CDMachOFile.h"
10
11 @implementation CDLCPreboundDylib
12
13 - (id)initWithDataCursor:(CDDataCursor *)cursor machOFile:(CDMachOFile *)aMachOF ile;
14 {
15 if ([super initWithDataCursor:cursor machOFile:aMachOFile] == nil)
16 return nil;
17
18 //NSLog(@"current offset: %u", [cursor offset]);
19 preboundDylibCommand.cmd = [cursor readInt32];
20 preboundDylibCommand.cmdsize = [cursor readInt32];
21 //NSLog(@"cmdsize: %u", preboundDylibCommand.cmdsize);
22
23 preboundDylibCommand.name.offset = [cursor readInt32];
24 preboundDylibCommand.nmodules = [cursor readInt32];
25 preboundDylibCommand.linked_modules.offset = [cursor readInt32];
26
27 if (preboundDylibCommand.cmdsize > 20) {
28 // Don't need this info right now.
29 [cursor advanceByLength:preboundDylibCommand.cmdsize - 20];
30 }
31
32 //name = [[cursor readCString] retain];
33 //NSLog(@"name: %@", name);
34 //exit(99);
35
36 return self;
37 }
38
39 - (void)dealloc;
40 {
41 [name release];
42
43 [super dealloc];
44 }
45
46 - (uint32_t)cmd;
47 {
48 return preboundDylibCommand.cmd;
49 }
50
51 - (uint32_t)cmdsize;
52 {
53 return preboundDylibCommand.cmdsize;
54 }
55
56 - (NSString *)name;
57 {
58 return name;
59 }
60
61 @end
OLDNEW
« no previous file with comments | « class-dump/src/CDLCPreboundDylib.h ('k') | class-dump/src/CDLCRoutines32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698