GDB (xrefs)
Loading...
Searching...
No Matches
Macros | Functions | Variables
index-cache.c File Reference
#include "defs.h"
#include "dwarf2/index-cache.h"
#include "build-id.h"
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "command.h"
#include "gdbsupport/scoped_mmap.h"
#include "gdbsupport/pathstuff.h"
#include "dwarf2/index-write.h"
#include "dwarf2/read.h"
#include "dwarf2/dwz.h"
#include "objfiles.h"
#include "gdbsupport/selftest.h"
#include <string>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define index_cache_debug(FMT, ...)
 

Functions

static void show_index_cache_command (const char *arg, int from_tty)
 
static void set_index_cache_enabled_command (bool value)
 
static bool get_index_cache_enabled_command ()
 
static void show_index_cache_enabled_command (ui_file *stream, int from_tty, cmd_list_element *cmd, const char *value)
 
static void set_index_cache_directory_command (const char *arg, int from_tty, cmd_list_element *element)
 
static void show_index_cache_stats_command (const char *arg, int from_tty)
 
void _initialize_index_cache ()
 

Variables

static bool debug_index_cache = false
 
static std::string index_cache_directory
 
index_cache global_index_cache
 
static cmd_list_elementset_index_cache_prefix_list
 
static cmd_list_elementshow_index_cache_prefix_list
 
static bool in_show_index_cache_command = false
 

Macro Definition Documentation

◆ index_cache_debug

#define index_cache_debug ( FMT,
... )
Value:
debug_prefixed_printf_cond_nofunc (debug_index_cache, "index-cache", \
FMT, ## __VA_ARGS__)
static bool debug_index_cache
Definition index-cache.c:38

Definition at line 40 of file index-cache.c.

Referenced by index_cache::disable(), index_cache::enable(), index_cache_store_context::index_cache_store_context(), index_cache::set_directory(), and index_cache::store().

Function Documentation

◆ _initialize_index_cache()

void _initialize_index_cache ( )

Definition at line 350 of file index-cache.c.

Referenced by initialize_all_files().

◆ get_index_cache_enabled_command()

static bool get_index_cache_enabled_command ( )
static

Definition at line 302 of file index-cache.c.

References index_cache::enabled(), and global_index_cache.

◆ set_index_cache_directory_command()

static void set_index_cache_directory_command ( const char * arg,
int from_tty,
cmd_list_element * element )
static

◆ set_index_cache_enabled_command()

static void set_index_cache_enabled_command ( bool value)
static

Definition at line 291 of file index-cache.c.

References index_cache::disable(), index_cache::enable(), and global_index_cache.

◆ show_index_cache_command()

static void show_index_cache_command ( const char * arg,
int from_tty )
static

◆ show_index_cache_enabled_command()

static void show_index_cache_enabled_command ( ui_file * stream,
int from_tty,
cmd_list_element * cmd,
const char * value )
static

Definition at line 310 of file index-cache.c.

References gdb_printf().

◆ show_index_cache_stats_command()

static void show_index_cache_stats_command ( const char * arg,
int from_tty )
static

Variable Documentation

◆ debug_index_cache

bool debug_index_cache = false
static

Definition at line 38 of file index-cache.c.

◆ global_index_cache

index_cache global_index_cache

◆ in_show_index_cache_command

bool in_show_index_cache_command = false
static

Definition at line 269 of file index-cache.c.

Referenced by show_index_cache_command(), and show_index_cache_stats_command().

◆ index_cache_directory

std::string index_cache_directory
static

Definition at line 45 of file index-cache.c.

Referenced by set_index_cache_directory_command().

◆ set_index_cache_prefix_list

cmd_list_element* set_index_cache_prefix_list
static

Definition at line 51 of file index-cache.c.

◆ show_index_cache_prefix_list

cmd_list_element* show_index_cache_prefix_list
static

Definition at line 52 of file index-cache.c.

Referenced by show_index_cache_command().