File:  [Apple XNU] / GNUtools / debug / Common / SegmentManager.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:45:10 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, GNUtools33
GNU tools for NeXTSTEP 3.3

#import "RelocManager.h"
#import <mach-o/loader.h>

typedef struct _Segment {
    pointer_t 		address;
    vm_size_t		size;
    pointer_t		data;
    vm_address_t	maxAddress;
    long		displacement;
    pointer_t		maxData;
    struct {
        unsigned short readIn : 1;
    } rFlags;
    STR segName;
} Segment;

typedef struct _Image {
    STR name;
    struct mach_header *header;
    vm_size_t size;
    long mtime;
    BOOL deallocate;
} Image;

@interface SegmentManager : RelocManager
{
@public
    STR name;
    Image *images;
    int numImages;
    BOOL skipShlibs;
    int imageFd;
    cpu_type_t cpuType;
}

+newExecutable: (STR)name;
+newExecutable: (STR)name skipShlibs: (BOOL)skipShlibs withDesc: (int)desc cpuType: (cpu_type_t)type;
+newCore: (STR)theName;
+newFile: (STR)theName;
+newShlib: (STR)theName;
+newShlib: (STR)theName cpuType: (cpu_type_t)type;
+newHeader: (struct mach_header *)header withSize: (int)size;
-(int)numCommands: (unsigned long)command
        forHeader: (struct mach_header *)header;
-(struct symtab_command *)symCmd;
-(char *)stringTable;
-(BOOL)isCore;
-(BOOL)isShlib;
-(BOOL)isExecutable;
-(BOOL)validate;
-(STR)executableName;
-(long)mtime;
-(void)getImages;

@end


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.