Main Page   Modules   Data Structures   File List   Data Fields   Examples  

_mem_ctx Struct Reference
[The memory manglement library interface.]

memgrep context. More...

#include <memgrep.h>


Data Fields

unsigned long flags
enum MemoryMedium medium
int pid
char * core
MEMGREP_FUNCTIONS functions
PROCESS_SECTION_ADDRS sections
unsigned long * addrs
unsigned long numAddrs
unsigned long length
unsigned long padding
enum MemoryDumpFormat dumpFormat
MEM_CTX_CORE_DATA coreData
int procCtlFd
int procAsFd


Detailed Description

memgrep context.

The memgrep context.

Examples:

simple.c.


Field Documentation

unsigned long* _mem_ctx::addrs
 

Array of addresses populated by MEMGREP_CMD_POPULATE

char* _mem_ctx::core
 

The core file to operate on.

MEM_CTX_CORE_DATA _mem_ctx::coreData
 

Extended data related to core files

enum MemoryDumpFormat _mem_ctx::dumpFormat
 

Format for use when dumping

unsigned long _mem_ctx::flags
 

Holds the flags for the conetxt. These can be a combination of the following:

  • MEMGREP_FLAG_VERBOSE Be verbose. This enables output for given commands.
  • MEMGREP_FLAG_PROMPT Prompt before overwriting memory.
  • MEMGREP_FLAG_DUMPCLEAN Dump the memory in human read-able format. This is only useful with verbose set.

MEMGREP_FUNCTIONS _mem_ctx::functions
 

Medium specific function table.

unsigned long _mem_ctx::length
 

The length used when searching, and dumping.

enum MemoryMedium _mem_ctx::medium
 

The medium that will be operated upon. This can be:

  • MEMORY_MEDIUM_PID Operate on a process id.
  • MEMORY_MEDIUM_CORE Operate on a core file.

unsigned long _mem_ctx::numAddrs
 

Number of elements in the 'addrs' array.

unsigned long _mem_ctx::padding
 

Padding used when dumping memory.

int _mem_ctx::pid
 

The process id to operate on.

int _mem_ctx::procCtlFd
 

MISC:

procFd => Solaris fd for proc access

PROCESS_SECTION_ADDRS _mem_ctx::sections
 

Section addresses associated with the medium.


The documentation for this struct was generated from the following file:
Generated on Mon Dec 29 02:04:13 2003 for memgrep by doxygen1.2.15