GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "bfd.h"
#include "filenames.h"
#include "symfile.h"
#include "objfiles.h"
#include "breakpoint.h"
#include "command.h"
#include "gdbsupport/gdb_obstack.h"
#include "language.h"
#include "bcache.h"
#include "block.h"
#include "gdbsupport/gdb_regex.h"
#include <sys/stat.h>
#include "dictionary.h"
#include "typeprint.h"
#include "gdbcmd.h"
#include "source.h"
#include "readline/tilde.h"
#include <cli/cli-style.h>
#include "gdbsupport/buildargv.h"
Go to the source code of this file.
Functions | |
static int | block_depth (const struct block *) |
static void | print_symbol (struct gdbarch *gdbarch, struct symbol *symbol, int depth, ui_file *outfile) |
void | print_objfile_statistics (void) |
static void | dump_objfile (struct objfile *objfile) |
static void | dump_msymbols (struct objfile *objfile, struct ui_file *outfile) |
static void | dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile) |
static void | dump_symtab (struct symtab *symtab, struct ui_file *outfile) |
static void | maintenance_print_symbols (const char *args, int from_tty) |
static void | maintenance_print_msymbols (const char *args, int from_tty) |
static void | maintenance_print_objfiles (const char *regexp, int from_tty) |
static void | maintenance_info_symtabs (const char *regexp, int from_tty) |
static void | maintenance_check_symtabs (const char *ignore, int from_tty) |
static void | maintenance_expand_symtabs (const char *args, int from_tty) |
static int | maintenance_print_one_line_table (struct symtab *symtab, void *data) |
static void | maintenance_info_line_tables (const char *regexp, int from_tty) |
void | _initialize_symmisc () |
void _initialize_symmisc | ( | ) |
Definition at line 1045 of file symmisc.c.
Referenced by initialize_all_files().
|
static |
Definition at line 930 of file symmisc.c.
References block::superblock().
Referenced by dump_symtab_1().
Definition at line 146 of file symmisc.c.
References obj_section::addr(), objfile::arch(), gdb_printf(), gdb_puts(), objfile_per_bfd_storage::minimal_symbol_count, mst_abs, mst_bss, mst_data, mst_data_gnu_ifunc, mst_file_bss, mst_file_data, mst_file_text, mst_solib_trampoline, mst_text, mst_text_gnu_ifunc, mst_unknown, objfile::msymbols(), objfile_name(), paddress(), objfile::per_bfd, objfile::section_offsets, objfile::sections_start, and obj_section::the_bfd_section.
Referenced by maintenance_print_msymbols().
|
static |
Definition at line 114 of file symmisc.c.
References symtab::compunit(), objfile::compunit_symtabs, objfile::compunits(), objfile::dump(), gdb_printf(), objfile_per_bfd_storage::minimal_symbol_count, objfile::obfd, compunit_symtab::objfile(), objfile_name(), objfile::per_bfd, and symtab_to_filename_for_display().
Referenced by maintenance_print_objfiles().
Definition at line 360 of file symmisc.c.
References dump_symtab_1(), symtab::language(), language_unknown, and set_language().
Referenced by maintenance_print_symbols().
Definition at line 235 of file symmisc.c.
References objfile::arch(), blockvector::block(), block_depth(), compunit_symtab::blockvector(), symtab::compunit(), general_symbol_info::demangled_name, compunit_symtab::dirname(), block::end(), exception_fprintf(), block::function(), gdb_printf(), gdb_puts(), gdb_stderr, compunit_symtab::includes, is_main_symtab_of_compunit_symtab(), linetable_entry::is_stmt, linetable::item, symtab::language(), language_str(), linetable_entry::line, symtab::linetable(), general_symbol_info::linkage_name(), mdict_size(), block::multidict(), block::multidict_symbols(), linetable::nitems, blockvector::num_blocks(), compunit_symtab::objfile(), objfile_name(), paddress(), linetable_entry::pc(), compunit_symtab::primary_filetab(), print_symbol(), block::start(), block::superblock(), symtab_to_filename_for_display(), and compunit_symtab::user.
Referenced by dump_symtab().
|
static |
Definition at line 842 of file symmisc.c.
References objfile::compunits(), gdb_printf(), gdb_stdout, objfile_name(), program_spaces, QUIT, and symtab_to_filename_for_display().
|
static |
Definition at line 888 of file symmisc.c.
References ALL_DOMAIN, objfile::expand_symtabs_matching(), symtab::filename, program_spaces, re_comp(), SEARCH_GLOBAL_BLOCK, SEARCH_STATIC_BLOCK, and UNDEF_DOMAIN.
|
static |
Definition at line 1012 of file symmisc.c.
References objfile::compunits(), dont_repeat(), gdb_printf(), maintenance_print_one_line_table(), program_spaces, QUIT, re_comp(), and symtab_to_filename_for_display().
|
static |
Definition at line 732 of file symmisc.c.
References objfile::compunits(), dont_repeat(), symtab::fullname, gdb_printf(), gdb_stdout, compunit_symtab::includes, symtab::linetable(), objfile_name(), program_spaces, QUIT, re_comp(), and symtab_to_filename_for_display().
|
static |
Definition at line 655 of file symmisc.c.
References compare_filenames_for_search(), current_program_space, dont_repeat(), dump_msymbols(), gdb_stdout, objfile_name(), program_space::objfiles(), stdio_file::open(), and QUIT.
|
static |
Definition at line 712 of file symmisc.c.
References dont_repeat(), dump_objfile(), objfile_name(), program_spaces, QUIT, and re_comp().
|
static |
Definition at line 946 of file symmisc.c.
References objfile::arch(), symtab::compunit(), current_uiout, ui_out::field_core_addr(), ui_out::field_signed(), ui_out::field_string(), file_name_style, gdb_printf(), linetable_entry::is_stmt, linetable::item, linetable_entry::line, symtab::linetable(), compunit_symtab::name, linetable::nitems, compunit_symtab::objfile(), objfile::objfile(), objfile_name(), linetable_entry::pc(), linetable_entry::prologue_end, cli_style_option::style(), styled_string(), symtab_to_fullname(), ui_out::table_body(), ui_out::table_header(), ui_out::text(), ui_left, and linetable_entry::unrelocated_pc().
Referenced by maintenance_info_line_tables().
|
static |
Definition at line 377 of file symmisc.c.
References compare_filenames_for_search(), objfile::compunits(), current_program_space, dont_repeat(), dump_symtab(), find_pc_line_symtab(), gdb_stdout, objfile_name(), program_space::objfiles(), stdio_file::open(), parse_and_eval_address(), QUIT, and symtab_to_filename_for_display().
void print_objfile_statistics | ( | void | ) |
Definition at line 52 of file symmisc.c.
References objfile::compunits(), gdb_printf(), gdb::bcache::memory_used(), objfile_per_bfd_storage::n_minsyms, objfile_name(), OBJSTAT, objfile::per_bfd, gdb::bcache::print_statistics(), objfile::print_stats(), program_spaces, QUIT, objfile_per_bfd_storage::storage_obstack, and objfile_per_bfd_storage::string_cache.
Referenced by maintenance_print_statistics().
|
static |
Definition at line 492 of file symmisc.c.
References symbol::aclass(), check_typedef(), type::code(), current_language, symbol::domain(), block::end(), gdb_printf(), gdb_puts(), symbol::is_argument(), symbol::is_objfile_owned(), LABEL_DOMAIN, type::length(), general_symbol_info::linkage_name(), LOC_ARG, LOC_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNRESOLVED, type::name(), general_symbol_info::obj_section(), symbol::objfile(), paddress(), general_symbol_info::print_name(), print_spaces(), language_defn::print_type(), block::start(), STRUCT_DOMAIN, obj_section::the_bfd_section, symbol::type(), type_print_raw_options, symbol::value_address(), symbol::value_block(), symbol::value_bytes(), and symbol::value_longest().
Referenced by dump_symtab_1().