![]() | ![]() | ![]() | UCL Common Library Reference | ![]() |
---|
#include <debug.h> #define UNUSED (x) #define debug_msgvoid debug_dump (void *lp,long len );void debug_set_core_dir (constchar *argv0);
void debug_dump (void *lp,long len );
Writes a dump of a memory region to stdout. The dump contains a hexadecimal and an ascii representation of the memory region.
lp : | pointer to memory region. |
Param2 : |
|
void debug_set_core_dir (constchar *argv0);
Creates a directory with the application name and makes it the current working directory.
This function exists because some unix variants use the name 'core' for core dump files. When an application uses multiple processes, this can be problematic if the failure of one process leads to the failure of another because the dependent process 'core' file will overwrite the core of the failing process.
argv0 : | the application path (usually argv[0] in |
<<< rtp | memory >>> |