libcwdversion 2.0.0
The C++ Debugging Support Library
Loading...
Searching...
No Matches
libraries_debug.h File Reference

This is the header file that third-party library headers should include. More...

#include "libcwd/config.h"
#include "AlwaysChannel.h"
#include "Channel.h"
#include "ContinuedChannel.h"
#include "FatalChannel.h"
#include "DebugObject.h"
#include "macro_Libcwd_macros.h"
#include "attach_gdb.h"
#include "RcFile.h"
#include "demangle.h"
#include "LibcwdForAllDebugChannels.h"
#include "LibcwdForAllDebugObjects.h"
#include "private/environ.h"
#include "AlwaysChannel.inl.h"
#include "Channel.inl.h"
#include "ChannelSet.inl.h"
#include "ContinuedChannel.inl.h"
#include "DebugObject.inl.h"
#include "DebugString.inl.h"
#include "FatalChannel.inl.h"
#include "Location.inl.h"
#include "elfutils.h"

Go to the source code of this file.

Namespaces

namespace  libcwd
 namespace for libcwd.
namespace  libcwd::channels
 The default LIBCWD_DEBUG_CHANNELS namespace.
namespace  libcwd::channels::dc
 This namespace contains the standard debug channels of libcwd.

Functions

void libcwd::initialize ()
 Initialize libcwd global state before normal dynamic initialization reaches libcw_do.
Channellibcwd::find_channel (char const *label)
 Find debug channel with label label.
void libcwd::list_channels_on (DebugObject &debug_object)
 List all debug channels to a given debug object.
std::ostream & libcwd_inserters::operator<< (std::ostream &os, Location const &location)
 Write location to ostream os.

Detailed Description

Don't include this header file directly. See The Custom debug.h File - libraries for more information.

Function Documentation

◆ operator<<()

std::ostream & libcwd::operator<< ( std::ostream & os,
Location const & location )
inline

Write the contents of a Location object to an ostream in the form source-file:line-number, or writes objectfile:mangledfuncname when the location is unknown. If the source-file:line-number is known, then it may be prepended by the object file and/or the mangled function name anyway if this was requested through libcwd::location_format. That function can also be used to cause the source-file to be printed with its full path.