GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-7.10/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
 

Macros

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

Functions

static int symfile_debug_installed (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 compunit_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 domain, 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, expand_symtabs_file_matcher_ftype *file_matcher, expand_symtabs_symbol_matcher_ftype *symbol_matcher, expand_symtabs_exp_notify_ftype *expansion_notify, enum search_domain kind, void *data)
 
static struct compunit_symtabdebug_qf_find_pc_sect_compunit_symtab (struct objfile *objfile, struct bound_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 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_datadebug_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 const struct objfile_data * symfile_debug_objfile_data_key
 
static int debug_symfile = 0
 
static const struct quick_symbol_functions debug_sym_quick_functions
 
static const struct sym_probe_fns debug_sym_probe_fns
 
static const struct sym_fns debug_sym_fns
 
initialize_file_ftype _initialize_symfile_debug
 

Macro Definition Documentation

#define COPY_SF_PTR (   from,
  to,
  name,
  func 
)
Value:
do { \
if ((from)->name) \
(to)->debug_sf.name = func; \
} while (0)
void(* func)(char *)
const char *const name
Definition: aarch64-tdep.c:68
int * from
Definition: varobj.h:282
int int * to
Definition: varobj.h:282

Referenced by install_symfile_debug_logging().

Function Documentation

void _initialize_symfile_debug ( void  )
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,
expand_symtabs_file_matcher_ftype file_matcher,
expand_symtabs_symbol_matcher_ftype symbol_matcher,
expand_symtabs_exp_notify_ftype expansion_notify,
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
static struct compunit_symtab* debug_qf_find_pc_sect_compunit_symtab ( struct objfile objfile,
struct bound_minimal_symbol  msymbol,
CORE_ADDR  pc,
struct obj_section section,
int  warn_if_readin 
)
static
static void debug_qf_forget_cached_source_info ( struct objfile objfile)
static
static int debug_qf_has_symbols ( struct objfile objfile)
static
static struct compunit_symtab* debug_qf_lookup_symbol ( struct objfile objfile,
int  kind,
const char *  name,
domain_enum  domain 
)
static
static void debug_qf_map_matching_symbols ( struct objfile objfile,
const char *  name,
domain_enum  domain,
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_finish ( struct objfile objfile)
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 struct symfile_segment_data* debug_sym_segments ( bfd *  abfd)
static

Definition at line 477 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 651 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 539 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

initialize_file_ftype _initialize_symfile_debug

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

Referenced by initialize_all_files().

const struct sym_fns debug_sym_fns
static
Initial value:
=
{
}
static const struct sym_probe_fns debug_sym_probe_fns
static void debug_sym_new_init(struct objfile *objfile)
static void debug_sym_finish(struct objfile *objfile)
static const struct quick_symbol_functions debug_sym_quick_functions
static void debug_sym_offsets(struct objfile *objfile, const struct section_addr_info *info)
static void debug_sym_read_psymbols(struct objfile *objfile)
static struct symfile_segment_data * debug_sym_segments(bfd *abfd)
static void debug_sym_read(struct objfile *objfile, int symfile_flags)
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 debug_sym_init(struct objfile *objfile)

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

const struct sym_probe_fns debug_sym_probe_fns
static
Initial value:
=
{
debug_sym_get_probes,
}

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

Referenced by install_symfile_debug_logging().

const struct quick_symbol_functions debug_sym_quick_functions
static
Initial value:
=
{
}
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_with_fullname(struct objfile *objfile, const char *fullname)
static void debug_qf_dump(struct objfile *objfile)
static void debug_qf_forget_cached_source_info(struct objfile *objfile)
static struct compunit_symtab * debug_qf_lookup_symbol(struct objfile *objfile, int kind, const char *name, domain_enum domain)
static struct symtab * debug_qf_find_last_source_symtab(struct objfile *objfile)
Definition: symfile-debug.c:88
static int debug_qf_has_symbols(struct objfile *objfile)
Definition: symfile-debug.c:73
static void debug_qf_expand_symtabs_for_function(struct objfile *objfile, const char *func_name)
static void debug_qf_expand_symtabs_matching(struct objfile *objfile, expand_symtabs_file_matcher_ftype *file_matcher, expand_symtabs_symbol_matcher_ftype *symbol_matcher, expand_symtabs_exp_notify_ftype *expansion_notify, enum search_domain kind, void *data)
static void debug_qf_expand_all_symtabs(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 void debug_qf_map_symbol_filenames(struct objfile *objfile, symbol_filename_ftype *fun, void *data, int need_fullname)
static struct compunit_symtab * debug_qf_find_pc_sect_compunit_symtab(struct objfile *objfile, struct bound_minimal_symbol msymbol, CORE_ADDR pc, struct obj_section *section, int warn_if_readin)
static void debug_qf_map_matching_symbols(struct objfile *objfile, const char *name, domain_enum domain, int global, int(*callback)(struct block *, struct symbol *, void *), void *data, symbol_compare_ftype *match, symbol_compare_ftype *ordered_compare)
static void debug_qf_print_stats(struct objfile *objfile)

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

Referenced by install_symfile_debug_logging().

int debug_symfile = 0
static
const struct objfile_data* symfile_debug_objfile_data_key
static