PStack  2.0
Stack trace printer for MSVC and GCC binaries
symbol_file_module.cpp File Reference

Define a class that examines a COFF executable / library image for debugging symbols. More...

Include dependency graph for symbol_file_module.cpp:

Namespaces

 anonymous_namespace{symbol_file_module.cpp}
 Data local to this compilation unit.
 
 psystem
 Contains the process examination "system" and basic frameworks.
 

Macros

#define PRINT_CHARACTERISTIC_FLAG(flag)
 Define a local macro to analyze and display bit flags. More...
 

Functions

static void anonymous_namespace{symbol_file_module.cpp}::print_dos_image_header (IMAGE_DOS_HEADER const &hdr)
 Output details for a DOS executable image to the console. More...
 
template<typename T >
void anonymous_namespace{symbol_file_module.cpp}::print_nt_image_header (T const &hdr)
 Output details for an NT executable image to the console. More...
 
template<typename T >
void anonymous_namespace{symbol_file_module.cpp}::print_optional_image_header (T const &hdr, bool const is_dll)
 Output "optional" details for an NT executable image to the console. More...
 

Detailed Description

Define a class that examines a COFF executable / library image for debugging symbols.

Author
Matt Bisson
Date
8 February, 2015
Since
PSystem 2.0
Version
PSystem 2.0

Macro Definition Documentation

#define PRINT_CHARACTERISTIC_FLAG (   flag)
Value:
if ((hdr.FileHeader.Characteristics & IMAGE_FILE_##flag) \
== IMAGE_FILE_##flag) \
{ \
std::cout << #flag " "; \
}

Define a local macro to analyze and display bit flags.

This macro is only available within the print_nt_image_header() function. It references local variables therein.

Parameters
flagThe IMAGE_FILE flag to output (if found in the mask).