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

Side by Side Diff: class-dump/src/CDRelocationInfo.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/CDRelocationInfo.h ('k') | class-dump/src/CDSearchPathState.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 "CDRelocationInfo.h"
7
8 @implementation CDRelocationInfo
9
10 - (id)initWithInfo:(struct relocation_info)info;
11 {
12 if ([super init] == nil)
13 return nil;
14
15 rinfo = info;
16
17 return self;
18 }
19
20 - (NSUInteger)offset;
21 {
22 return rinfo.r_address;
23 }
24
25 - (CDRelocationSize)size;
26 {
27 return rinfo.r_length;
28 }
29
30 - (uint32_t)symbolnum;
31 {
32 return rinfo.r_symbolnum;
33 }
34
35 - (BOOL)isExtern;
36 {
37 return rinfo.r_extern == 1;
38 }
39
40 - (NSString *)description;
41 {
42 return [NSString stringWithFormat:@"<%@:%p> addr/off: %08x, sym #: %5u, pcre l? %u, len: %u, extern? %u, type: %x",
43 NSStringFromClass([self class]), self,
44 rinfo.r_address, rinfo.r_symbolnum, rinfo.r_pcrel, rinfo.r_ length, rinfo.r_extern, rinfo.r_type];
45 }
46
47 @end
OLDNEW
« no previous file with comments | « class-dump/src/CDRelocationInfo.h ('k') | class-dump/src/CDSearchPathState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698