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

Functions
Helper functions for within gdb

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...
 

Detailed Description

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(), libcwd::libcw_do, libcwd::set_invisible_off(), libcwd::set_invisible_on(), and libcwd::unknown_function_c.

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.

References libcwd::libcw_do, libcwd::set_invisible_off(), and libcwd::set_invisible_on().

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

AltStyle によって変換されたページ (->オリジナル) /