GCC Middle and Back End API Reference
debug_dump_context Class Reference

#include <dump-context.h>

Collaboration diagram for debug_dump_context:

Public Member Functions

 debug_dump_context (FILE *f=stderr)
 
 ~debug_dump_context ()
 

Private Attributes

dump_context m_context
 
dump_contextm_saved
 
dump_flags_t m_saved_flags
 
dump_flags_t m_saved_pflags
 
FILE * m_saved_file
 

Detailed Description

An RAII-style class for use in debug dumpers for temporarily using a
different dump_context.  It enables full details and outputs to
stderr instead of the currently active dump_file.   

Constructor & Destructor Documentation

◆ debug_dump_context()

debug_dump_context::debug_dump_context ( FILE * f = stderr)
debug_dump_context's ctor.  Temporarily override the dump_context
(to forcibly enable output to stderr).   

References dump_flags, dump_context::get(), m_context, MSG_ALL_KINDS, MSG_ALL_PRIORITIES, pflags, dump_context::refresh_dumps_are_enabled(), dump_context::s_current, and set_dump_file().

◆ ~debug_dump_context()

debug_dump_context::~debug_dump_context ( )

Field Documentation

◆ m_context

dump_context debug_dump_context::m_context
private

Referenced by debug_dump_context().

◆ m_saved

dump_context* debug_dump_context::m_saved
private

Referenced by ~debug_dump_context().

◆ m_saved_file

FILE* debug_dump_context::m_saved_file
private

Referenced by ~debug_dump_context().

◆ m_saved_flags

dump_flags_t debug_dump_context::m_saved_flags
private

Referenced by ~debug_dump_context().

◆ m_saved_pflags

dump_flags_t debug_dump_context::m_saved_pflags
private

Referenced by ~debug_dump_context().


The documentation for this class was generated from the following files: