Macros | Functions
dbghelp.c File Reference

Some debugging help functions. More...

#include "debug.h"
#include "arch.h"
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>

Go to the source code of this file.




void dbg_memdump (const char *Where, const unsigned char *InputBuffer, const unsigned int Count)
 output a memory dump to the debugging system More...

Detailed Description

Some debugging help functions.

Spiro Trikaliotis

Definition in file dbghelp.c.

Macro Definition Documentation


The name of the executable

Definition at line 23 of file dbghelp.c.


Mark: We are in user-space (for debug.h)

Definition at line 20 of file dbghelp.c.

Function Documentation

void dbg_memdump ( const char *  Where,
const unsigned char *  InputBuffer,
const unsigned int  Count 

output a memory dump to the debugging system

Generates a byte dump and outputs it to the debugging system

WhereSome text to output in front of the memory dump. This text can be used to identify where this dump occurred.
InputBufferPointer to a buffer which contains the data bytes to be dumped.
CountThe size of the buffer to be dumped.
as dumping memory is used regularly when debugging, we give a debug helper function for this

Definition at line 64 of file dbghelp.c.

References DBG_PREFIX, and DBG_PRINT.