![]() |
#include <mylimits.h>#include <string.h>#include "omConfig.h"#include "omalloc.h"#include "omDebug.h"#include "omReturn.h"Go to the source code of this file.
Macros | |
| #define | OM_CLFL check_level OM_FL_KOMMA OM_FL |
| #define | MAX(a, b) (a > b ? a : b) |
| #define | MIN(a, b) (a < b ? a : b) |
Functions | |
| static void * | __omDebugAlloc (void *size_bin, omTrackFlags_t flags, char track, OM_FLR_DECL) |
| static void * | __omDebugRealloc (void *old_addr, void *old_size_bin, void *new_size_bin, omError_t old_status, omTrackFlags_t old_flags, omTrackFlags_t new_flags, char track, OM_FLR_DECL) |
| static void | __omDebugFree (void *addr, void *size_bin, omTrackFlags_t flags, OM_FLR_DECL) |
| omError_t | omTestAddrBin (void *addr, omBin bin, int check_level) |
| omError_t | omTestBinAddrSize (void *addr, size_t size, int check_level) |
| omError_t | omTestAddrSize (void *addr, size_t size, int check_level) |
| omError_t | omTestBinAddr (void *addr, int check_level) |
| omError_t | omTestAddr (void *addr, int check_level) |
| omError_t | omtestAddrSize (void *addr, size_t size, int check_level) |
| omError_t | omtestAddr (void *addr, int check_level) |
| omError_t | omTestAddrAlignedBin (void *addr, omBin bin, int check_level) |
| omError_t | omTestAddrAlignedSize (void *addr, size_t size, int check_level) |
| omError_t | omTestAddrAligned (void *addr, int check_level) |
| omError_t | omtestAddrAlignedSize (void *addr, size_t size, int check_level) |
| omError_t | omtestAddrAligned (void *addr, int check_level) |
| omError_t | omTestBin (omBin bin, int check_level) |
| omError_t | omTestMemory (int check_level) |
| void * | _omDebugAlloc (void *size_bin, omTrackFlags_t flags, OM_CTFL_DECL) |
| void * | _omDebugRealloc (void *old_addr, void *old_size_bin, void *new_size_bin, omTrackFlags_t old_flags, omTrackFlags_t new_flags, OM_CTFL_DECL) |
| void | _omDebugFree (void *addr, void *size_bin, omTrackFlags_t flags, OM_CFL_DECL) |
| void * | _omDebugMemDup (void *addr, omTrackFlags_t flags, OM_CTFL_DECL) |
| char * | _omDebugStrDup (const char *addr, OM_TFL_DECL) |
| omError_t | _omDebugAddr (void *addr, void *bin_size, omTrackFlags_t flags, OM_CFL_DECL) |
| omError_t | _omDebugMemory (OM_CFL_DECL) |
| omError_t | _omDebugBin (omBin bin, OM_CFL_DECL) |
| static omBin | omGetOrigSpecBinOfAddr (void *addr) |
| void | omFreeKeptAddrFromBin (omBin bin) |
| void | omFreeKeptAddr () |
Variables | |
| void * | om_KeptAddr = NULL |
| static unsigned long | om_NumberOfKeptAddrs = 0 |
| void * | om_LastKeptAddr = NULL |
| void * | om_AlwaysKeptAddrs = NULL |
|
static |
|
static |
Definition at line 465 of file omDebug.c.
|
static |
Definition at line 352 of file omDebug.c.
| omError_t _omDebugAddr | ( | void * | addr, |
| void * | bin_size, | ||
| omTrackFlags_t | flags, | ||
| OM_CFL_DECL | |||
| ) |
Definition at line 278 of file omDebug.c.
| void* _omDebugAlloc | ( | void * | size_bin, |
| omTrackFlags_t | flags, | ||
| OM_CTFL_DECL | |||
| ) |
Definition at line 110 of file omDebug.c.
Definition at line 293 of file omDebug.c.
| void _omDebugFree | ( | void * | addr, |
| void * | size_bin, | ||
| omTrackFlags_t | flags, | ||
| OM_CFL_DECL | |||
| ) |
Definition at line 182 of file omDebug.c.
| void* _omDebugMemDup | ( | void * | addr, |
| omTrackFlags_t | flags, | ||
| OM_CTFL_DECL | |||
| ) |
Definition at line 201 of file omDebug.c.
| omError_t _omDebugMemory | ( | OM_CFL_DECL | ) |
Definition at line 286 of file omDebug.c.
| void* _omDebugRealloc | ( | void * | old_addr, |
| void * | old_size_bin, | ||
| void * | new_size_bin, | ||
| omTrackFlags_t | old_flags, | ||
| omTrackFlags_t | new_flags, | ||
| OM_CTFL_DECL | |||
| ) |
Definition at line 147 of file omDebug.c.
| char* _omDebugStrDup | ( | const char * | addr, |
| OM_TFL_DECL | |||
| ) |
Definition at line 231 of file omDebug.c.
| void omFreeKeptAddr | ( | ) |
Definition at line 609 of file omDebug.c.
| void omFreeKeptAddrFromBin | ( | omBin | bin | ) |
Definition at line 542 of file omDebug.c.
| omError_t omTestAddr | ( | void * | addr, |
| int | check_level | ||
| ) |
Definition at line 56 of file omDebug.c.
| omError_t omtestAddr | ( | void * | addr, |
| int | check_level | ||
| ) |
Definition at line 64 of file omDebug.c.
| omError_t omTestAddrAligned | ( | void * | addr, |
| int | check_level | ||
| ) |
Definition at line 77 of file omDebug.c.
| omError_t omtestAddrAligned | ( | void * | addr, |
| int | check_level | ||
| ) |
Definition at line 85 of file omDebug.c.
Definition at line 69 of file omDebug.c.
| omError_t omTestAddrAlignedSize | ( | void * | addr, |
| size_t | size, | ||
| int | check_level | ||
| ) |
Definition at line 73 of file omDebug.c.
| omError_t omtestAddrAlignedSize | ( | void * | addr, |
| size_t | size, | ||
| int | check_level | ||
| ) |
Definition at line 81 of file omDebug.c.
Definition at line 40 of file omDebug.c.
| omError_t omTestAddrSize | ( | void * | addr, |
| size_t | size, | ||
| int | check_level | ||
| ) |
Definition at line 48 of file omDebug.c.
| omError_t omtestAddrSize | ( | void * | addr, |
| size_t | size, | ||
| int | check_level | ||
| ) |
Definition at line 60 of file omDebug.c.
| omError_t omTestBinAddr | ( | void * | addr, |
| int | check_level | ||
| ) |
Definition at line 52 of file omDebug.c.
| omError_t omTestBinAddrSize | ( | void * | addr, |
| size_t | size, | ||
| int | check_level | ||
| ) |
Definition at line 44 of file omDebug.c.