Classes | |
class | alloc_ct |
An object of type alloc_ct contains information about one allocated memory block. More... | |
class | buf2str |
Print a (char ) buffer with a given size to a debug ostream, escaping non-printable characters. More... | |
class | channel_ct |
This object represents a debug channel, it has a fixed label. A debug channel can be viewed upon as a single bit: on or off. More... | |
class | char2str |
Print a char to a debug ostream, escaping non-printable characters as needed. More... | |
interface | cwprint |
Print an object to a debug stream without needing an operator<<. More... | |
interface | cwprint_using |
Print an object to an ostream using an arbitrary method of that object. More... | |
class | debug_ct |
The Debug Object class, this object represents one output device (ostream ). More... | |
class | debug_string_ct |
A string class used for the debug output margin and marker. More... | |
class | location_ct |
A source file location. More... | |
class | marker_ct |
A memory allocation marker. More... | |
class | object_file_ct |
An object representing the main executable or a shared library. More... | |
class | ooam_filter_ct |
class | rcfile_ct |
This object represents a runtime configuration file. More... | |
class | type_info_ct |
Class that holds type information for debugging purposes. Returned by type_info_of(). More... | |
Typedefs | |
typedef unsigned short int | ooam_format_t |
The type used for the formatting flags of an ooam_filter_ct object. | |
typedef unsigned int | control_flag_t |
Enumerations | |
enum | continued_cf_nt { continued_cf } |
continued_cf has its own type for overloading purposes. More... | |
enum | malloc_report_nt { malloc_report } |
Type of malloc_report. More... | |
enum | memblk_types_nt { memblk_type_new, memblk_type_deleted, memblk_type_new_array, memblk_type_deleted_array, memblk_type_malloc, memblk_type_realloc, memblk_type_freed, memblk_type_marker, memblk_type_deleted_marker, memblk_type_external } |
A flag indicating the type of allocation. More... | |
Functions | |
void | core_dump (void) |
Dump core of current thread. | |
channel_ct * | find_channel (char const *label) |
Find debug channel with label label. | |
void | list_channels_on (debug_ct &debug_object) |
List all debug channels to a given debug object. | |
std::ostream & | operator<< (std::ostream &os, memblk_types_nt memblk_type) |
Allow writing a memblk_types_nt directly to an ostream. | |
bool | test_delete (void const *ptr) |
Test if a pointer points to the start of an allocated memory block. | |
size_t | mem_size (void) |
Returns the total number of allocated bytes. | |
unsigned long | mem_blocks (void) |
Returns the total number of allocated memory blocks. | |
std::ostream & | operator<< (std::ostream &o, malloc_report_nt) |
Allow writing of enum malloc_report_nt to an ostream. | |
void | list_allocations_on (debug_ct &debug_object) |
List all current allocations to a given debug object. | |
void | list_allocations_on (debug_ct &debug_object, ooam_filter_ct const &filter) |
List all current allocations to a given debug object using a specified format. | |
void | make_invisible (void const *ptr) |
Make allocation pointed to by ptr invisible. | |
void | make_all_allocations_invisible_except (void const *ptr) |
Make all current allocations invisible except the given pointer. | |
void | move_outside (marker_ct *marker, void const *ptr) |
Move memory allocation pointed to by ptr outside marker. | |
alloc_ct const * | find_alloc (void const *ptr) |
Find information about a memory allocation. | |
char const * | pc_mangled_function_name (void const *addr) |
Find the mangled function name of the address addr. | |
std::ostream & | operator<< (std::ostream &os, location_ct const &location) |
Write location to ostream os. | |
void | read_rcfile (void) |
Calls libcwd::rcfile.read(). | |
control_flag_t const | cond_nonewline_cf (bool cond) |
Returns nonewline_cf when cond is true. | |
control_flag_t const | cond_noprefix_cf (bool cond) |
Returns noprefix_cf when cond is true. | |
control_flag_t const | cond_nolabel_cf (bool cond) |
Returns nolabel_cf when cond is true. | |
control_flag_t const | cond_error_cf (bool err) |
Returns error_cf when cond is true. | |
void | demangle_type (char const *input, std::string &output) |
Demangle mangled type name input and write the result to string output . | |
void | demangle_symbol (char const *input, std::string &output) |
Demangle mangled symbol name input and write the result to string output . | |
template<typename T> type_info_ct const & | type_info_of (T const &instance) |
Get type information of a given class instance. | |
template<typename T> type_info_ct const & | type_info_of (void) |
Get type information of a given class or type. | |
Variables | |
debug_ct | libcw_do |
The default debug object. | |
char const *const | unknown_function_c |
This constant (pointer) is returned by location_ct::mangled_function_name() when no function is known. | |
ooam_format_t const | show_time |
Show the time at which the allocation was made. | |
ooam_format_t const | show_path |
Show the full path of the locations where the allocation was made. | |
ooam_format_t const | show_objectfile |
Show the name of the shared library that is responsible for the allocation. | |
ooam_format_t const | show_allthreads |
Show the allocations of all threads, not just the current thread. | |
control_flag_t const | nonewline_cf |
Omit the default new line at the end. | |
control_flag_t const | noprefix_cf |
Omit margin, label, marker and indentation. | |
control_flag_t const | nolabel_cf |
Omit label, marker and indentation. | |
control_flag_t const | blank_margin_cf |
Replace margin by white space. | |
control_flag_t const | blank_label_cf |
Replace label by white space. | |
control_flag_t const | blank_marker_cf |
Replace marker by white space. | |
control_flag_t const | cerr_cf |
Force output to be written to cerr. | |
control_flag_t const | flush_cf |
Flush ostream after writing this output. | |
control_flag_t const | wait_cf |
If interactive, wait till return is pressed. | |
control_flag_t const | error_cf |
Append error string according to errno. | |
unsigned short const | max_label_len_c |
The maximum number of characters that are allowed in a debug channel label. | |
int const | builtin_return_address_offset |
Offset to __builtin_return_address() needed to get the correct line number from location_ct. |
The d in libcwd stands for Debugging. The cw stand for the initials of the designer/developer of this life-span project.
This namespace contains all user accessible classes, functions and variables.
Things defined in this namespace belong to the libcwd API and will be supported through-out version 1.x.
|
Type of malloc_report.
|
|
A flag indicating the type of allocation.
This is returned by alloc_ct::memblk_type. The flags
|
|
Allow writing a
Writes the name of the |
|
Calls libcwd::rcfile.read().
|
|
Offset to __builtin_return_address() needed to get the correct line number from location_ct.
|
|
The default debug object. The debug object that is used by default by Dout and DoutFatal, the only debug object used by libcwd itself.
|