Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htmacho.h File Reference

#include "machostruc.h"
#include "formats.h"
#include "htendian.h"
#include "htformat.h"

Go to the source code of this file.

Classes

class  ht_macho
struct  ht_macho_shared_data
struct  macho_commands
struct  macho_sections

Defines

#define DESC_MACHO   "Mach-O - Mach exe/link format"
#define DESC_MACHO_HEADER   "Mach-O/header"
#define DESC_MACHO_IMAGE   "Mach-O/image"

Typedefs

typedef uint32 MACHOAddress

Functions

bool macho_phys_and_mem_section (MACHO_SECTION *s, UINT machoclass)
bool macho_valid_section (MACHO_SECTION *s, UINT machoclass)
bool macho_addr_to_section (macho_sections *section_headers, UINT machoclass, MACHOAddress addr, int *section)
bool macho_addr_to_ofs (macho_sections *section_headers, UINT machoclass, MACHOAddress addr, dword *ofs)
bool macho_addr_is_valid (macho_sections *section_headers, UINT machoclass, MACHOAddress addr)
bool macho_ofs_to_addr (macho_sections *section_headers, UINT machoclass, dword ofs, MACHOAddress *addr)
bool macho_ofs_to_section (macho_sections *section_headers, UINT machoclass, dword ofs, dword *section)

Variables

format_viewer_if htmacho_if


Define Documentation

#define DESC_MACHO   "Mach-O - Mach exe/link format"
 

Definition at line 29 of file htmacho.h.

Referenced by ht_macho::init().

#define DESC_MACHO_HEADER   "Mach-O/header"
 

Definition at line 30 of file htmacho.h.

#define DESC_MACHO_IMAGE   "Mach-O/image"
 

Definition at line 35 of file htmacho.h.


Typedef Documentation

typedef uint32 MACHOAddress
 

Definition at line 136 of file htmacho.h.

Referenced by MachoAnalyser::addressToFileofs(), MachoAnalyser::convertAddressToMACHOAddress(), MachoAnalyser::fileofsToAddress(), MachoAnalyser::getSegmentNameByAddress(), macho_addr_is_valid(), macho_addr_to_ofs(), macho_addr_to_section(), macho_ofs_to_addr(), and MachoAnalyser::validAddress().


Function Documentation

bool macho_addr_is_valid macho_sections section_headers,
UINT  machoclass,
MACHOAddress  addr
 

Definition at line 213 of file htmacho.cc.

References macho_sections::count, macho_valid_section(), MACHOAddress, macho_sections::sections, UINT, MACHO_SECTION::vmaddr, and MACHO_SECTION::vmsize.

bool macho_addr_to_ofs macho_sections section_headers,
UINT  machoclass,
MACHOAddress  addr,
dword *  ofs
 

Definition at line 186 of file htmacho.cc.

References macho_sections::count, MACHO_SECTION::fileoff, macho_phys_and_mem_section(), MACHOAddress, macho_sections::sections, UINT, MACHO_SECTION::vmaddr, and MACHO_SECTION::vmsize.

Referenced by MachoAnalyser::addressToFileofs().

bool macho_addr_to_section macho_sections section_headers,
UINT  machoclass,
MACHOAddress  addr,
int *  section
 

Definition at line 200 of file htmacho.cc.

References macho_sections::count, macho_valid_section(), MACHOAddress, macho_sections::sections, UINT, MACHO_SECTION::vmaddr, and MACHO_SECTION::vmsize.

Referenced by MachoAnalyser::getSegmentNameByAddress(), and MachoAnalyser::validAddress().

bool macho_ofs_to_addr macho_sections section_headers,
UINT  machoclass,
dword  ofs,
MACHOAddress addr
 

Definition at line 234 of file htmacho.cc.

References macho_sections::count, MACHO_SECTION::fileoff, macho_phys_and_mem_section(), MACHOAddress, macho_sections::sections, UINT, MACHO_SECTION::vmaddr, and MACHO_SECTION::vmsize.

Referenced by MachoAnalyser::fileofsToAddress().

bool macho_ofs_to_section macho_sections section_headers,
UINT  machoclass,
dword  ofs,
dword *  section
 

Definition at line 247 of file htmacho.cc.

References macho_sections::count, MACHO_SECTION::fileoff, macho_valid_section(), macho_sections::sections, UINT, and MACHO_SECTION::vmsize.

bool macho_phys_and_mem_section MACHO_SECTION s,
UINT  machoclass
 

Definition at line 176 of file htmacho.cc.

References UINT.

Referenced by macho_addr_to_ofs(), and macho_ofs_to_addr().

bool macho_valid_section MACHO_SECTION s,
UINT  machoclass
 

Definition at line 181 of file htmacho.cc.

References UINT.

Referenced by macho_addr_is_valid(), macho_addr_to_section(), and macho_ofs_to_section().


Variable Documentation

format_viewer_if htmacho_if
 

Definition at line 37 of file htmacho.h.


Generated on Fri May 7 21:15:49 2004 by doxygen 1.3.5