Functions | |
void const * | cwdebug_watch (void const *ptr) __attribute__((unused)) |
Add a watch point for freeing ptr. More... | |
int | cwdebug_alloc (void const *ptr) __attribute__((unused)) |
Print information about the memory at the location ptr. More... | |
int cwdebug_alloc | ( | void const * | ptr | ) |
Print information about the memory at the location ptr.
This function can be called from inside gdb. It can be used to figure out what/where some memory location was allocated. This is especially handy in large applications where about everything is dynamically allocated, like GUI applications.
void const * cwdebug_watch | ( | void const * | ptr | ) |
Add a watch point for freeing ptr.
This function can be called from inside gdb. After continuing the application, gdb will stop when the memory that ptr is pointing to is being freed.