class-dump/CDSegmentCommand.h

44 lines
1019 B
C
Raw Normal View History

2007-11-02 09:49:29 +00:00
// -*- mode: ObjC -*-
// 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
#import "CDLoadCommand.h"
#include <mach-o/loader.h>
@class NSArray;
@class CDSection;
@interface CDSegmentCommand : CDLoadCommand
{
struct segment_command segmentCommand;
NSString *name;
NSArray *sections;
}
- (id)initWithPointer:(const void *)ptr machOFile:(CDMachOFile *)aMachOFile;
- (void)dealloc;
- (void)_processSectionsWithPointer:(const void *)ptr;
- (NSString *)name;
- (unsigned long)vmaddr;
- (unsigned long)fileoff;
- (unsigned long)flags;
- (NSArray *)sections;
2007-01-18 00:37:47 +00:00
- (BOOL)isProtected;
- (NSString *)flagDescription;
- (NSString *)extraDescription;
- (BOOL)containsAddress:(unsigned long)vmaddr;
- (unsigned long)segmentOffsetForVMAddr:(unsigned long)vmaddr;
- (CDSection *)sectionWithName:(NSString *)aName;
- (void)appendToString:(NSMutableString *)resultString verbose:(BOOL)isVerbose;
2007-01-18 03:28:44 +00:00
@end