Dyninst::SymtabAPI::emitWin Class Reference

#include <emitWin.h>

Public Member Functions

 emitWin (PCHAR baseaddress, Object *o_nt, void(*)(const char *)=log_msg)
 ~emitWin ()
bool driver (Symtab *obj, std::string fName)

Private Member Functions

Offset PEAlign (Offset dwAddr, Offset dwAlign)
unsigned int NumOfTotalAllowedSec ()
unsigned int NumOfAllowedSecInSectionTable ()
unsigned int NumOfAllowedSecInDosHeader ()
PIMAGE_SECTION_HEADER CreateSecHeader (unsigned int size, PIMAGE_SECTION_HEADER preSecHdr)
bool AlignSection (PIMAGE_SECTION_HEADER p)
bool writeImpTable (Symtab *)
void log_winerror (void(*err_func)(const char *), const char *msg)

Private Attributes

PCHAR base_addr
Offset bit_addr
unsigned int bit_size
Objectobj_nt
bool isMoveAhead
void(* err_func_ )(const char *)

Static Private Attributes

static const unsigned int SizeOfSecHeader = 40

Detailed Description

Definition at line 45 of file emitWin.h.


Constructor & Destructor Documentation

emitWin::emitWin ( PCHAR  baseaddress,
Object o_nt,
void(*)(const char *)  err_func = log_msg 
)

Definition at line 46 of file emitWin.C.

References base_addr, err_func_, and obj_nt.

Dyninst::SymtabAPI::emitWin::~emitWin (  ) 

Member Function Documentation

bool emitWin::AlignSection ( PIMAGE_SECTION_HEADER  p  )  [private]

Definition at line 76 of file emitWin.C.

PIMAGE_SECTION_HEADER emitWin::CreateSecHeader ( unsigned int  size,
PIMAGE_SECTION_HEADER  preSecHdr 
) [private]

Definition at line 52 of file emitWin.C.

References obj_nt, and PEAlign().

Referenced by driver().

bool emitWin::driver ( Symtab obj,
std::string  fName 
)
void emitWin::log_winerror ( void(*)(const char *)  err_func,
const char *  msg 
) [private]

Definition at line 620 of file emitWin.C.

Referenced by driver().

unsigned int emitWin::NumOfAllowedSecInDosHeader (  )  [private]

Definition at line 610 of file emitWin.C.

References base_addr, obj_nt, and SizeOfSecHeader.

Referenced by driver().

unsigned int emitWin::NumOfAllowedSecInSectionTable (  )  [private]

Definition at line 573 of file emitWin.C.

References base_addr, bit_addr, bit_size, obj_nt, and SizeOfSecHeader.

Referenced by driver().

unsigned int emitWin::NumOfTotalAllowedSec (  )  [private]

Definition at line 558 of file emitWin.C.

References obj_nt.

Offset emitWin::PEAlign ( Offset  dwAddr,
Offset  dwAlign 
) [private]

Definition at line 551 of file emitWin.C.

Referenced by CreateSecHeader(), and driver().

bool emitWin::writeImpTable ( Symtab obj  )  [private]

Field Documentation

Definition at line 55 of file emitWin.h.

Referenced by driver(), and NumOfAllowedSecInSectionTable().

unsigned int Dyninst::SymtabAPI::emitWin::bit_size [private]

Definition at line 56 of file emitWin.h.

Referenced by driver(), and NumOfAllowedSecInSectionTable().

void(* Dyninst::SymtabAPI::emitWin::err_func_)(const char *) [private]

Referenced by driver(), and emitWin().

Definition at line 65 of file emitWin.h.

Referenced by driver().

const unsigned int Dyninst::SymtabAPI::emitWin::SizeOfSecHeader = 40 [static, private]

Definition at line 53 of file emitWin.h.

Referenced by driver(), NumOfAllowedSecInDosHeader(), and NumOfAllowedSecInSectionTable().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1