GCC Middle and Back End API Reference
dbgcnt.c File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "diagnostic-core.h"
#include "dumpfile.h"
#include "dbgcnt.h"
#include "dbgcnt.def"
Include dependency graph for dbgcnt.c:

Data Structures

struct  string2counter_map

Macros

#define DEBUG_COUNTER(a)   { #a , a },
#define DEBUG_COUNTER(a)   UINT_MAX,

Functions

bool dbg_cnt_is_enabled ()
bool dbg_cnt ()
static void dbg_cnt_set_limit_by_index ()
static bool dbg_cnt_set_limit_by_name ()
static const char * dbg_cnt_process_single_pair ()
void dbg_cnt_process_opt ()
void dbg_cnt_list_all_counters ()

Variables

static struct string2counter_map map [debug_counter_number_of_counters]
static unsigned int limit [debug_counter_number_of_counters]
static unsigned int count [debug_counter_number_of_counters]

Macro Definition Documentation

#define DEBUG_COUNTER (   a)    { #a , a },
#define DEBUG_COUNTER (   a)    UINT_MAX,

Function Documentation

bool dbg_cnt_is_enabled ( )

References count, and limit.

Referenced by dbg_cnt().

void dbg_cnt_list_all_counters ( void  )

Print name, limit and count of all counters.

void dbg_cnt_process_opt ( )
static const char* dbg_cnt_process_single_pair ( )
static

Process a single "name:value" pair. Returns NULL if there's no valid pair is found. Otherwise returns a pointer to the end of the pair.

Referenced by dbg_cnt_process_opt().

static void dbg_cnt_set_limit_by_index ( )
static
static bool dbg_cnt_set_limit_by_name ( )
static

Variable Documentation