130 "qf->map_symtabs_matching_filename (%s, \"%s\", \"%s\", %s)\n",
132 real_path ? real_path : NULL,
139 "qf->map_symtabs_matching_filename (...) = %d\n",
155 "qf->lookup_symbol (%s, %d, \"%s\", %s)\n",
215 const char *func_name)
222 "qf->expand_symtabs_for_function (%s, \"%s\")\n",
243 const char *fullname)
250 "qf->expand_symtabs_with_fullname (%s, \"%s\")\n",
260 int (*callback) (
struct block *,
271 "qf->map_matching_symbols (%s, \"%s\", %s, %d, %s, %s, %s, %s)\n",
300 "qf->expand_symtabs_matching (%s, %s, %s, %s, %s)\n",
328 "qf->find_pc_sect_compunit_symtab (%s, %s, %s, %s, %d)\n",
341 "qf->find_pc_sect_compunit_symtab (...) = %s\n",
358 "qf->map_symbol_filenames (%s, %s, %s, %d)\n",
376 "qf->find_compunit_symtab_by_address (%s, %s)\n",
387 "qf->find_compunit_symtab_by_address (...) = %s\n",
417 static const std::vector<probe *> &
424 const std::vector<probe *> &retval
428 "probes->sym_get_probes (%s) = %s\n",
555 "sf->sym_relocate (%s, %s, %s) = %s\n",
609 #define COPY_SF_PTR(from, to, name, func) \ 612 (to)->debug_sf.name = func; \ 713 Set debugging of the symfile functions."),
_(
"\ 714 Show debugging of the symfile functions."),
_(
"\ 715 When enabled, all calls to the symfile functions are logged."),
void(* expand_symtabs_matching)(struct objfile *objfile, gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher, const lookup_name_info &lookup_name, gdb::function_view< expand_symtabs_symbol_matcher_ftype > symbol_matcher, gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify, enum search_domain kind)
static void debug_qf_relocate(struct objfile *objfile, const struct section_offsets *new_offsets, const struct section_offsets *delta)
char * hex_string(LONGEST num)
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_name_match_type match, symbol_compare_ftype *ordered_compare)
static const struct sym_probe_fns debug_sym_probe_fns
const char * symtab_to_filename_for_display(struct symtab *symtab)
void(* forget_cached_source_info)(struct objfile *objfile)
static void debug_sym_new_init(struct objfile *objfile)
static void debug_qf_expand_symtabs_with_fullname(struct objfile *objfile, const char *fullname)
struct program_space * pspace
bool(* map_symtabs_matching_filename)(struct objfile *objfile, const char *name, const char *real_path, gdb::function_view< bool(symtab *)> callback)
static void debug_qf_dump(struct objfile *objfile)
char * plongest(LONGEST l)
enum domain_enum_tag domain_enum
struct compunit_symtab *(* 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_forget_cached_source_info(struct objfile *objfile)
void objfile_set_sym_fns(struct objfile *objfile, const struct sym_fns *sf)
static void debug_sym_finish(struct objfile *objfile)
void(* expand_symtabs_with_fullname)(struct objfile *objfile, const char *fullname)
void(* print_stats)(struct objfile *objfile)
struct compunit_symtab *(* find_compunit_symtab_by_address)(struct objfile *objfile, CORE_ADDR address)
static struct compunit_symtab * debug_qf_lookup_symbol(struct objfile *objfile, int kind, const char *name, domain_enum domain)
static void debug_sym_read(struct objfile *objfile, symfile_add_flags symfile_flags)
int() symbol_compare_ftype(const char *string1, const char *string2)
static struct symtab * debug_qf_find_last_source_symtab(struct objfile *objfile)
const struct sym_probe_fns * sym_probe_fns
const char * search_domain_name(enum search_domain e)
#define host_address_to_string(ADDR)
static int debug_qf_has_symbols(struct objfile *objfile)
struct compunit_symtab *(* lookup_symbol)(struct objfile *objfile, int block_index, const char *name, domain_enum domain)
static const char * debug_symtab_name(struct symtab *symtab)
static void debug_qf_expand_symtabs_for_function(struct objfile *objfile, const char *func_name)
static void set_debug_symfile(const char *args, int from_tty, struct cmd_list_element *c)
static int symfile_debug_installed(struct objfile *objfile)
static const struct sym_fns debug_sym_fns
const std::vector< probe * > &(* sym_get_probes)(struct objfile *)
static void debug_qf_expand_all_symtabs(struct objfile *objfile)
objfile(bfd *, const char *, objfile_flags)
void fprintf_filtered(struct ui_file *stream, const char *format,...)
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_qf_map_symbol_filenames(struct objfile *objfile, symbol_filename_ftype *fun, void *data, int need_fullname)
struct symtab * compunit_primary_filetab(const struct compunit_symtab *cust)
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)
void _initialize_symfile_debug(void)
#define gdb_assert_not_reached(message)
const struct sym_fns * sf
void(* sym_new_init)(struct objfile *)
void(* dump)(struct objfile *objfile)
struct symtab *(* find_last_source_symtab)(struct objfile *objfile)
void(* expand_all_symtabs)(struct objfile *objfile)
static bool debug_qf_map_symtabs_matching_filename(struct objfile *objfile, const char *name, const char *real_path, gdb::function_view< bool(symtab *)> callback)
const char * domain_name(domain_enum e)
void(* expand_symtabs_for_function)(struct objfile *objfile, const char *func_name)
void(* sym_offsets)(struct objfile *, const struct section_addr_info *)
struct cmd_list_element * setdebuglist
void(* sym_finish)(struct objfile *)
static struct compunit_symtab * debug_qf_find_compunit_symtab_by_address(struct objfile *objfile, CORE_ADDR address)
void(* relocate)(struct objfile *objfile, const struct section_offsets *new_offsets, const struct section_offsets *delta)
void(* sym_read_psymbols)(struct objfile *)
static void debug_qf_expand_symtabs_matching(struct objfile *objfile, gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher, const lookup_name_info &lookup_name, gdb::function_view< expand_symtabs_symbol_matcher_ftype > symbol_matcher, gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify, enum search_domain kind)
void(* sym_read_linetable)(struct objfile *)
#define ALL_PSPACES(pspace)
static void install_symfile_debug_logging(struct objfile *objfile)
static const std::vector< probe * > & debug_sym_get_probes(struct objfile *objfile)
static void show_debug_symfile(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
struct minimal_symbol * minsym
void add_setshow_boolean_cmd(const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_const_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
const char * objfile_debug_name(const struct objfile *objfile)
#define COPY_SF_PTR(from, to, name, func)
static void uninstall_symfile_debug_logging(struct objfile *objfile)
static void debug_sym_read_psymbols(struct objfile *objfile)
static struct symfile_segment_data * debug_sym_segments(bfd *abfd)
static void debug_qf_print_stats(struct objfile *objfile)
static const struct objfile_data * symfile_debug_objfile_data_key
struct cmd_list_element * showdebuglist
void(* map_matching_symbols)(struct objfile *, const char *name, domain_enum domain, int global, int(*callback)(struct block *, struct symbol *, void *), void *data, symbol_name_match_type match, symbol_compare_ftype *ordered_compare)
static void debug_sym_read_linetable(struct objfile *objfile)
void(* sym_init)(struct objfile *)
const struct quick_symbol_functions * qf
const struct sym_fns * real_sf
int(* has_symbols)(struct objfile *objfile)
static bfd_byte * debug_sym_relocate(struct objfile *objfile, asection *sectp, bfd_byte *buf)
#define ALL_PSPACE_OBJFILES(ss, obj)
bfd_byte *(* sym_relocate)(struct objfile *, asection *sectp, bfd_byte *buf)
static void symfile_debug_free_objfile(struct objfile *objfile, void *datum)
void(* sym_read)(struct objfile *, symfile_add_flags)
static void debug_sym_init(struct objfile *objfile)
void(* map_symbol_filenames)(struct objfile *objfile, symbol_filename_ftype *fun, void *data, int need_fullname)
void() symbol_filename_ftype(const char *filename, const char *fullname, void *data)