GDB (xrefs)
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/symfile-debug.c File Reference
#include "defs.h"
#include "gdbcmd.h"
#include "objfiles.h"
#include "observer.h"
#include "source.h"
#include "symtab.h"
#include "symfile.h"

Go to the source code of this file.

Classes

struct  debug_sym_fns_data

Defines

#define COPY_SF_PTR(from, to, name, func)

Functions

static int symfile_debug_installed (struct objfile *objfile)
static const char * debug_objfile_name (const struct objfile *objfile)
static const char * debug_symtab_name (struct symtab *symtab)
static int debug_qf_has_symbols (struct objfile *objfile)
static struct symtabdebug_qf_find_last_source_symtab (struct objfile *objfile)
static void debug_qf_forget_cached_source_info (struct objfile *objfile)
static int debug_qf_map_symtabs_matching_filename (struct objfile *objfile, const char *name, const char *real_path, int(*callback)(struct symtab *, void *), void *data)
static struct symtabdebug_qf_lookup_symbol (struct objfile *objfile, int kind, const char *name, domain_enum domain)
static void debug_qf_print_stats (struct objfile *objfile)
static void debug_qf_dump (struct objfile *objfile)
static void debug_qf_relocate (struct objfile *objfile, const struct section_offsets *new_offsets, const struct section_offsets *delta)
static void debug_qf_expand_symtabs_for_function (struct objfile *objfile, const char *func_name)
static void debug_qf_expand_all_symtabs (struct objfile *objfile)
static void debug_qf_expand_symtabs_with_fullname (struct objfile *objfile, const char *fullname)
static void debug_qf_map_matching_symbols (struct objfile *objfile, const char *name, domain_enum namespace, int global, int(*callback)(struct block *, struct symbol *, void *), void *data, symbol_compare_ftype *match, symbol_compare_ftype *ordered_compare)
static void debug_qf_expand_symtabs_matching (struct objfile *objfile, int(*file_matcher)(const char *, void *, int basenames), int(*name_matcher)(const char *, void *), enum search_domain kind, void *data)
static struct symtabdebug_qf_find_pc_sect_symtab (struct objfile *objfile, struct minimal_symbol *msymbol, CORE_ADDR pc, struct obj_section *section, int warn_if_readin)
static void debug_qf_map_symbol_filenames (struct objfile *objfile, symbol_filename_ftype *fun, void *data, int need_fullname)
static VEC (probe_p)
static unsigned debug_sym_get_probe_argument_count (struct probe *probe)
static int debug_can_evaluate_probe_arguments (struct probe *probe)
static struct valuedebug_sym_evaluate_probe_argument (struct probe *probe, unsigned n)
static void debug_sym_compile_to_ax (struct probe *probe, struct agent_expr *expr, struct axs_value *value, unsigned n)
static void debug_sym_relocate_probe (struct objfile *objfile, const struct section_offsets *new_offsets, const struct section_offsets *delta)
static void debug_sym_new_init (struct objfile *objfile)
static void debug_sym_init (struct objfile *objfile)
static void debug_sym_read (struct objfile *objfile, int symfile_flags)
static void debug_sym_read_psymbols (struct objfile *objfile)
static void debug_sym_finish (struct objfile *objfile)
static void debug_sym_offsets (struct objfile *objfile, const struct section_addr_info *info)
static struct
symfile_segment_data
debug_sym_segments (bfd *abfd)
static void debug_sym_read_linetable (struct objfile *objfile)
static bfd_byte * debug_sym_relocate (struct objfile *objfile, asection *sectp, bfd_byte *buf)
static void symfile_debug_free_objfile (struct objfile *objfile, void *datum)
static void install_symfile_debug_logging (struct objfile *objfile)
static void uninstall_symfile_debug_logging (struct objfile *objfile)
void objfile_set_sym_fns (struct objfile *objfile, const struct sym_fns *sf)
static void set_debug_symfile (char *args, int from_tty, struct cmd_list_element *c)
static void show_debug_symfile (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void _initialize_symfile_debug (void)

Variables

static struct objfile_data * symfile_debug_objfile_data_key
static int debug_symfile = 0
static struct
quick_symbol_functions 
debug_sym_quick_functions
static struct sym_probe_fns debug_sym_probe_fns
static struct sym_fns debug_sym_fns
initialize_file_ftype _initialize_symfile_debug

Define Documentation

#define COPY_SF_PTR (   from,
  to,
  name,
  func 
)
Value:
do {                                            \
    if ((from)->name)                           \
      (to)->debug_sf.name = func;               \
  } while (0)

Referenced by install_symfile_debug_logging().


Function Documentation

void _initialize_symfile_debug ( void  )
static int debug_can_evaluate_probe_arguments ( struct probe probe) [static]
static const char* debug_objfile_name ( const struct objfile objfile) [static]
static void debug_qf_dump ( struct objfile objfile) [static]
static void debug_qf_expand_all_symtabs ( struct objfile objfile) [static]
static void debug_qf_expand_symtabs_for_function ( struct objfile objfile,
const char *  func_name 
) [static]
static void debug_qf_expand_symtabs_matching ( struct objfile objfile,
int(*)(const char *, void *, int basenames)  file_matcher,
int(*)(const char *, void *)  name_matcher,
enum search_domain  kind,
void *  data 
) [static]
static void debug_qf_expand_symtabs_with_fullname ( struct objfile objfile,
const char *  fullname 
) [static]
static struct symtab* debug_qf_find_last_source_symtab ( struct objfile objfile) [static, read]
static struct symtab* debug_qf_find_pc_sect_symtab ( struct objfile objfile,
struct minimal_symbol msymbol,
CORE_ADDR  pc,
struct obj_section section,
int  warn_if_readin 
) [static, read]
static void debug_qf_forget_cached_source_info ( struct objfile objfile) [static]
static int debug_qf_has_symbols ( struct objfile objfile) [static]
static struct symtab* debug_qf_lookup_symbol ( struct objfile objfile,
int  kind,
const char *  name,
domain_enum  domain 
) [static, read]
static void debug_qf_map_matching_symbols ( struct objfile objfile,
const char *  name,
domain_enum  namespace,
int  global,
int(*)(struct block *, struct symbol *, void *)  callback,
void *  data,
symbol_compare_ftype match,
symbol_compare_ftype ordered_compare 
) [static]
static void debug_qf_map_symbol_filenames ( struct objfile objfile,
symbol_filename_ftype fun,
void *  data,
int  need_fullname 
) [static]
static int debug_qf_map_symtabs_matching_filename ( struct objfile objfile,
const char *  name,
const char *  real_path,
int(*)(struct symtab *, void *)  callback,
void *  data 
) [static]
static void debug_qf_print_stats ( struct objfile objfile) [static]
static void debug_qf_relocate ( struct objfile objfile,
const struct section_offsets new_offsets,
const struct section_offsets delta 
) [static]
static void debug_sym_compile_to_ax ( struct probe probe,
struct agent_expr expr,
struct axs_value value,
unsigned  n 
) [static]
static struct value* debug_sym_evaluate_probe_argument ( struct probe probe,
unsigned  n 
) [static, read]
static void debug_sym_finish ( struct objfile objfile) [static]
static unsigned debug_sym_get_probe_argument_count ( struct probe probe) [static]
static void debug_sym_init ( struct objfile objfile) [static]
static void debug_sym_new_init ( struct objfile objfile) [static]
static void debug_sym_offsets ( struct objfile objfile,
const struct section_addr_info info 
) [static]
static void debug_sym_read ( struct objfile objfile,
int  symfile_flags 
) [static]
static void debug_sym_read_linetable ( struct objfile objfile) [static]
static void debug_sym_read_psymbols ( struct objfile objfile) [static]
static bfd_byte* debug_sym_relocate ( struct objfile objfile,
asection *  sectp,
bfd_byte *  buf 
) [static]
static void debug_sym_relocate_probe ( struct objfile objfile,
const struct section_offsets new_offsets,
const struct section_offsets delta 
) [static]
static struct symfile_segment_data* debug_sym_segments ( bfd *  abfd) [static, read]

Definition at line 576 of file symfile-debug.c.

References gdb_assert_not_reached.

Referenced by install_symfile_debug_logging().

static const char* debug_symtab_name ( struct symtab symtab) [static]
static void install_symfile_debug_logging ( struct objfile objfile) [static]
void objfile_set_sym_fns ( struct objfile objfile,
const struct sym_fns sf 
)
static void set_debug_symfile ( char *  args,
int  from_tty,
struct cmd_list_element c 
) [static]
static void show_debug_symfile ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

Definition at line 750 of file symfile-debug.c.

References _, and fprintf_filtered().

Referenced by _initialize_symfile_debug().

static void symfile_debug_free_objfile ( struct objfile objfile,
void *  datum 
) [static]

Definition at line 638 of file symfile-debug.c.

References xfree().

Referenced by _initialize_symfile_debug().

static int symfile_debug_installed ( struct objfile objfile) [static]
static void uninstall_symfile_debug_logging ( struct objfile objfile) [static]
static VEC ( probe_p  ) [static]

Variable Documentation

Definition at line 756 of file symfile-debug.c.

Referenced by initialize_all_files().

struct sym_fns debug_sym_fns [static]
int debug_symfile = 0 [static]
struct objfile_data* symfile_debug_objfile_data_key [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines