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

htmacho.cc File Reference

#include "elfstruc.h"
#include "log.h"
#include "htmacho.h"
#include "htmachohd.h"
#include "htmachoimg.h"
#include "htendian.h"
#include "stream.h"
#include "tools.h"
#include "machostruc.h"
#include <stdlib.h>

Go to the source code of this file.

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_ofs (macho_sections *sections, UINT machoclass, MACHOAddress addr, dword *ofs)
bool macho_addr_to_section (macho_sections *sections, UINT machoclass, MACHOAddress addr, int *section)
bool macho_addr_is_valid (macho_sections *sections, UINT machoclass, MACHOAddress addr)
bool macho_ofs_to_addr (macho_sections *sections, UINT machoclass, dword ofs, MACHOAddress *addr)
bool macho_ofs_to_section (macho_sections *sections, UINT machoclass, dword ofs, dword *section)

Variables

format_viewer_if htmacho_if


Function Documentation

bool macho_addr_is_valid macho_sections sections,
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 sections,
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 sections,
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 sections,
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 sections,
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
 

Initial value:

 {
        htmacho_init,
        0
}

Definition at line 57 of file htmacho.cc.


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