2007-11-02 09:49:29 +00:00
|
|
|
// -*- mode: ObjC -*-
|
|
|
|
|
2005-08-13 20:32:02 +00:00
|
|
|
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
|
2007-03-14 10:07:33 +00:00
|
|
|
// Copyright (C) 1997-1998, 2000-2001, 2004-2007 Steve Nygard
|
2004-01-06 01:52:00 +00:00
|
|
|
|
2003-12-09 01:50:32 +00:00
|
|
|
#import "CDLoadCommand.h"
|
|
|
|
#include <mach-o/loader.h>
|
|
|
|
|
|
|
|
@class NSArray;
|
|
|
|
@class CDSection;
|
|
|
|
|
|
|
|
@interface CDSegmentCommand : CDLoadCommand
|
|
|
|
{
|
2005-07-28 19:05:58 +00:00
|
|
|
struct segment_command segmentCommand;
|
2003-12-09 01:50:32 +00:00
|
|
|
|
|
|
|
NSString *name;
|
|
|
|
NSArray *sections;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id)initWithPointer:(const void *)ptr machOFile:(CDMachOFile *)aMachOFile;
|
|
|
|
- (void)dealloc;
|
|
|
|
|
2005-07-28 19:05:58 +00:00
|
|
|
- (void)_processSectionsWithPointer:(const void *)ptr;
|
2003-12-09 01:50:32 +00:00
|
|
|
|
|
|
|
- (NSString *)name;
|
|
|
|
- (unsigned long)vmaddr;
|
|
|
|
- (unsigned long)fileoff;
|
|
|
|
- (unsigned long)flags;
|
|
|
|
- (NSArray *)sections;
|
|
|
|
|
2007-01-18 00:37:47 +00:00
|
|
|
- (BOOL)isProtected;
|
|
|
|
|
2003-12-09 01:50:32 +00:00
|
|
|
- (NSString *)flagDescription;
|
|
|
|
- (NSString *)extraDescription;
|
|
|
|
|
|
|
|
- (BOOL)containsAddress:(unsigned long)vmaddr;
|
|
|
|
- (unsigned long)segmentOffsetForVMAddr:(unsigned long)vmaddr;
|
|
|
|
|
|
|
|
- (CDSection *)sectionWithName:(NSString *)aName;
|
|
|
|
|
2007-01-18 03:44:23 +00:00
|
|
|
- (void)appendToString:(NSMutableString *)resultString verbose:(BOOL)isVerbose;
|
2007-01-18 03:28:44 +00:00
|
|
|
|
2003-12-09 01:50:32 +00:00
|
|
|
@end
|