debug.c File Reference

#include "debug_p.h"
#include <stdarg.h>
#include <assert.h>
#include <stdio.h>
#include <gwenhywfar/misc.h>
Include dependency graph for debug.c:

Go to the source code of this file.

Functions

uint32_t GWEN_Debug_PrintDec (char *buffer, uint32_t size, uint32_t num, int leadingZero, uint32_t length)
uint32_t GWEN_Debug_PrintHex (char *buffer, uint32_t size, uint32_t num, int leadingZero, int up, uint32_t length)
uint32_t GWEN_Debug_Snprintf (char *buffer, uint32_t size, const char *fmt,...)
void GWEN_MemoryDebug__DumpObject (GWEN_MEMORY_DEBUG_OBJECT *o, uint32_t mode)
GWEN_MEMORY_DEBUG_OBJECTGWEN_MemoryDebug__FindObject (const char *name)
void GWEN_MemoryDebug_CleanUp ()
void GWEN_MemoryDebug_Decrement (const char *name, const char *wFile, int wLine)
void GWEN_MemoryDebug_Dump (uint32_t mode)
void GWEN_MemoryDebug_DumpObject (const char *name, uint32_t mode)
long int GWEN_MemoryDebug_GetObjectCount (const char *name)
void GWEN_MemoryDebug_Increment (const char *name, const char *wFile, int wLine, int attach)
void GWEN_MemoryDebugEntry_free (GWEN_MEMORY_DEBUG_ENTRY *e)
GWEN_MEMORY_DEBUG_ENTRY * GWEN_MemoryDebugEntry_new (GWEN_MEMORY_DEBUG_ENTRY_TYPE t, const char *wFile, int wLine)
void GWEN_MemoryDebugObject_free (GWEN_MEMORY_DEBUG_OBJECT *o)
GWEN_MEMORY_DEBUG_OBJECTGWEN_MemoryDebugObject_new (const char *name)

Variables

static GWEN_MEMORY_DEBUG_OBJECTgwen_debug__memobjects = 0

Function Documentation

uint32_t GWEN_Debug_PrintDec ( char *  buffer,
uint32_t  size,
uint32_t  num,
int  leadingZero,
uint32_t  length 
)

Definition at line 49 of file debug.c.

Referenced by GWEN_Debug_Snprintf().

Here is the caller graph for this function:

uint32_t GWEN_Debug_PrintHex ( char *  buffer,
uint32_t  size,
uint32_t  num,
int  leadingZero,
int  up,
uint32_t  length 
)

Definition at line 112 of file debug.c.

Referenced by GWEN_Debug_Snprintf().

Here is the caller graph for this function:

uint32_t GWEN_Debug_Snprintf ( char *  buffer,
uint32_t  size,
const char *  fmt,
  ... 
)

Definition at line 184 of file debug.c.

References GWEN_Debug_PrintDec(), and GWEN_Debug_PrintHex().

Here is the call graph for this function:

void GWEN_MemoryDebug__DumpObject ( GWEN_MEMORY_DEBUG_OBJECT o,
uint32_t  mode 
)

Definition at line 530 of file debug.c.

References DBG_ERROR, GWEN_MEMORY_DEBUG_MODE_DETAILED, and GWEN_MEMORY_DEBUG_MODE_SHORT.

Referenced by GWEN_MemoryDebug_Dump(), and GWEN_MemoryDebug_DumpObject().

Here is the caller graph for this function:

GWEN_MEMORY_DEBUG_OBJECT* GWEN_MemoryDebug__FindObject ( const char *  name  ) 

Definition at line 448 of file debug.c.

References DBG_ERROR, gwen_debug__memobjects, and GWEN_LOGDOMAIN.

Referenced by GWEN_MemoryDebug_Decrement(), GWEN_MemoryDebug_DumpObject(), GWEN_MemoryDebug_GetObjectCount(), and GWEN_MemoryDebug_Increment().

Here is the caller graph for this function:

void GWEN_MemoryDebug_CleanUp (  ) 

Definition at line 612 of file debug.c.

References gwen_debug__memobjects, and GWEN_MemoryDebugObject_free().

Here is the call graph for this function:

void GWEN_MemoryDebug_Decrement ( const char *  name,
const char *  wFile,
int  wLine 
)

Definition at line 499 of file debug.c.

References DBG_ERROR, gwen_debug__memobjects, GWEN_LIST_ADD, GWEN_LOGDOMAIN, GWEN_MemoryDebug__FindObject(), GWEN_MemoryDebugEntry_new(), and GWEN_MemoryDebugObject_new().

Here is the call graph for this function:

void GWEN_MemoryDebug_Dump ( uint32_t  mode  ) 

Definition at line 597 of file debug.c.

References DBG_ERROR, gwen_debug__memobjects, and GWEN_MemoryDebug__DumpObject().

Here is the call graph for this function:

void GWEN_MemoryDebug_DumpObject ( const char *  name,
uint32_t  mode 
)

Definition at line 567 of file debug.c.

References DBG_ERROR, GWEN_LOGDOMAIN, GWEN_MemoryDebug__DumpObject(), and GWEN_MemoryDebug__FindObject().

Here is the call graph for this function:

long int GWEN_MemoryDebug_GetObjectCount ( const char *  name  ) 

Definition at line 582 of file debug.c.

References DBG_ERROR, GWEN_LOGDOMAIN, and GWEN_MemoryDebug__FindObject().

Referenced by GWEN_IpcManager_Dump().

Here is the call graph for this function:

Here is the caller graph for this function:

void GWEN_MemoryDebug_Increment ( const char *  name,
const char *  wFile,
int  wLine,
int  attach 
)

Definition at line 468 of file debug.c.

References gwen_debug__memobjects, GWEN_LIST_ADD, GWEN_MemoryDebug__FindObject(), GWEN_MemoryDebugEntry_new(), and GWEN_MemoryDebugObject_new().

Here is the call graph for this function:

void GWEN_MemoryDebugEntry_free ( GWEN_MEMORY_DEBUG_ENTRY *  e  ) 

Definition at line 408 of file debug.c.

References GWEN_FREE_OBJECT.

Referenced by GWEN_MemoryDebugObject_free().

Here is the caller graph for this function:

GWEN_MEMORY_DEBUG_ENTRY* GWEN_MemoryDebugEntry_new ( GWEN_MEMORY_DEBUG_ENTRY_TYPE  t,
const char *  wFile,
int  wLine 
)

Definition at line 392 of file debug.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_MemoryDebug_Decrement(), and GWEN_MemoryDebug_Increment().

Here is the caller graph for this function:

void GWEN_MemoryDebugObject_free ( GWEN_MEMORY_DEBUG_OBJECT o  ) 

Definition at line 429 of file debug.c.

References GWEN_FREE_OBJECT, and GWEN_MemoryDebugEntry_free().

Referenced by GWEN_MemoryDebug_CleanUp().

Here is the call graph for this function:

Here is the caller graph for this function:

GWEN_MEMORY_DEBUG_OBJECT* GWEN_MemoryDebugObject_new ( const char *  name  ) 

Definition at line 418 of file debug.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_MemoryDebug_Decrement(), and GWEN_MemoryDebug_Increment().

Here is the caller graph for this function:


Variable Documentation

Generated on Mon Jul 5 22:54:41 2010 for gwenhywfar by  doxygen 1.6.3