Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

tstkLdrMod.c File Reference


Detailed Description

kLdr - Module interpreter testcase.

Definition in file tstkLdrMod.c.

#include <k/kLdr.h>
#include <k/kErr.h>
#include <k/kErrors.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Defines

#define MY_BASEADDRESS   0x2400000

Functions

static int BasicTestEnumDbgInfoCallback (PKLDRMOD pMod, KU32 iDbgInfo, KLDRDBGINFOTYPE enmType, KI16 iMajorVer, KI16 iMinorVer, KLDRFOFF offFile, KLDRADDR LinkAddress, KLDRSIZE cb, const char *pszExtFile, void *pvUser)
static int BasicTests (const char *pszFilename)
static int BasicTestsEnumSymCallback (PKLDRMOD pMod, KU32 iSymbol, const char *pchSymbol, KSIZE cchSymbol, const char *pszVersion, KLDRADDR uValue, KU32 fKind, void *pvUser)
static int BasicTestsGetImport (PKLDRMOD pMod, KU32 iImport, KU32 iSymbol, const char *pchSymbol, KSIZE cchSymbol, const char *pszVersion, PKLDRADDR puValue, KU32 *pfKind, void *pvUser)
static int BasicTestsRelocate (PKLDRMOD pMod, void *pvBits, void *pvBits2)
static int BasicTestsSub (PKLDRMOD pMod)
static int BasicTestsSub2 (PKLDRMOD pMod, void *pvBits)
static int BasicTestsSubMap (PKLDRMOD pMod)
static int BasicTestsSubMap2 (PKLDRMOD pMod)
static int Failure (const char *pszFormat,...)
int main (int argc, char **argv)
static int TestMemComp (const void *pv1, const void *pv2, KSIZE cb)

Variables

static int g_cErrors = 0


Generated by  Doxygen 1.6.0   Back to index