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

ht_le Class Reference

#include <htle.h>

Inheritance diagram for ht_le:

ht_format_group ht_format_viewer ht_viewer ht_view Object List of all members.

Public Member Functions

void init (bounds *b, ht_streamfile *file, format_viewer_if **ifs, ht_format_group *format_group, FILEOFS h)
virtual void done ()
virtual void loc_enum_start ()
virtual bool loc_enum_next (ht_format_loc *loc)

Protected Member Functions

void check_vxd ()
void do_fixups ()
void read_pagemap ()
void read_objects ()

Protected Attributes

bool loc_enum

Member Function Documentation

void ht_le::check_vxd  )  [protected]
 

Definition at line 286 of file htle.cc.

References ht_le_shared_data::byteorder, create_host_struct(), FILEOFS, ht_le_shared_data::hdr, ht_le_shared_data::hdr_ofs, ht_le_objmap::header, ht_le_shared_data::is_vxd, LE_ENTRYPOINT32_struct, LE_ENTRYPOINT_BUNDLE_32BIT, LE_ENTRYPOINT_BUNDLE_VALID, LE_ENTRYPOINT_EXPORTED, LE_VXD_DESCRIPTOR_struct, ht_le_shared_data::objmap, ht_reloc_file::read(), ht_stream::read(), ht_le_shared_data::reloc_file, ht_layer_streamfile::seek(), ht_streamfile::seek(), uint32, ht_le_shared_data::vxd_desc, and ht_le_shared_data::vxd_desc_linear_ofs.

Referenced by init().

void ht_le::do_fixups  )  [protected]
 

Definition at line 141 of file htle.cc.

References buf, ht_le_shared_data::byteorder, create_host_int(), create_host_struct(), errorbox, FILEOFS, ht_reloc_file::finalize(), ht_streamfile::get_filename(), ht_le_shared_data::hdr, ht_le_shared_data::hdr_ofs, ht_le_reloc_file::init(), ht_reloc_file::insert_reloc(), LE_FIXUP_ADDR_MULTIPLE, LE_FIXUP_ADDR_TYPE_0_16, LE_FIXUP_ADDR_TYPE_0_32, LE_FIXUP_ADDR_TYPE_0_8, LE_FIXUP_ADDR_TYPE_16_0, LE_FIXUP_ADDR_TYPE_16_16, LE_FIXUP_ADDR_TYPE_16_32, LE_FIXUP_ADDR_TYPE_MASK, LE_FIXUP_ADDR_TYPE_REL32, LE_FIXUP_INTERNAL16_struct, LE_FIXUP_INTERNAL32_struct, LE_FIXUP_RELOC_TARGET32, LE_FIXUP_RELOC_TYPE_IMPORT_NAME, LE_FIXUP_RELOC_TYPE_IMPORT_ORD, LE_FIXUP_RELOC_TYPE_INTERNAL, LE_FIXUP_RELOC_TYPE_MASK, LE_FIXUP_RELOC_TYPE_OSFIXUP, LE_FIXUP_struct, LE_MAKE_ADDR(), ht_le_shared_data::linear_file, little_endian, LOG, LOG_EX, LOG_WARN, malloc(), ht_stream::read(), ht_le_shared_data::reloc_file, ht_streamfile::seek(), size, UINT, uint16, and uint32.

Referenced by init().

void ht_le::done  )  [virtual]
 

Reimplemented from ht_format_group.

Definition at line 114 of file htle.cc.

References ht_reloc_file::done(), ht_layer_streamfile::done(), ht_format_group::done(), ht_le_objmap::header, ht_le_shared_data::linear_file, ht_le_shared_data::objmap, ht_le_pagemap::offset, ht_le_shared_data::pagemap, ht_le_pagemap::psize, ht_le_objmap::psize, ht_le_shared_data::reloc_file, ht_le_pagemap::vsize, and ht_le_objmap::vsize.

void ht_le::init bounds *  b,
ht_streamfile file,
format_viewer_if **  ifs,
ht_format_group format_group,
FILEOFS  h
 

Definition at line 69 of file htle.cc.

References check_vxd(), create_host_struct(), DESC_LE, do_fixups(), file, FILEOFS, ht_le_page_file::init(), Object::init(), ht_format_group::init_ifs(), LE_ADDR_INVALID, LE_HEADER_struct, little_endian, LOG, malloc(), NULL, read_objects(), read_pagemap(), ht_le_shared_data::v_header, VIEW_DEBUG_NAME, VO_BROWSABLE, VO_RESIZE, and VO_SELECTABLE.

bool ht_le::loc_enum_next ht_format_loc loc  )  [virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 404 of file htle.cc.

References ht_streamfile::get_size(), ht_le_shared_data::hdr_ofs, ht_format_loc::length, loc_enum, ht_format_loc::name, and ht_format_loc::start.

void ht_le::loc_enum_start  )  [virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 399 of file htle.cc.

void ht_le::read_objects  )  [protected]
 

Definition at line 355 of file htle.cc.

References ht_le_shared_data::byteorder, ht_le_objmap::count, create_host_struct(), FILEOFS, ht_le_shared_data::hdr, ht_le_shared_data::hdr_ofs, ht_le_objmap::header, LE_OBJECT_HEADER_struct, malloc(), MIN, ht_le_shared_data::objmap, ht_le_shared_data::pagemap, ht_le_pagemap::psize, ht_le_objmap::psize, ht_stream::read(), ht_streamfile::seek(), UINT, ht_le_pagemap::vsize, and ht_le_objmap::vsize.

Referenced by init().

void ht_le::read_pagemap  )  [protected]
 

Definition at line 319 of file htle.cc.

References ht_le_shared_data::byteorder, ht_le_pagemap::count, create_host_struct(), dword, FILEOFS, ht_le_shared_data::hdr, ht_le_shared_data::hdr_ofs, LE_PAGE_MAP_ENTRY_struct, malloc(), ht_le_pagemap::offset, ht_le_shared_data::pagemap, ht_le_pagemap::psize, ht_stream::read(), ht_streamfile::seek(), and ht_le_pagemap::vsize.

Referenced by init().


Member Data Documentation

bool ht_le::loc_enum [protected]
 

Definition at line 85 of file htle.h.

Referenced by loc_enum_next().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:15:59 2004 by doxygen 1.3.5