Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

Helper functions for within gdb

Functions

void const * cwdebug_watch (void const *ptr) __attribute__((unused))
 Add a watch point for freeing ptr.
int cwdebug_alloc (void const *ptr) __attribute__((unused))
 Print information about the memory at the location ptr.

Function Documentation

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.

References libcwd::demangle_symbol().

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.

Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.