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 "gdb_obstack.h"
#include "language.h"
#include "bcache.h"
#include "block.h"
#include "gdb_regex.h"
#include <sys/stat.h>
#include "dictionary.h"
#include "typeprint.h"
#include "gdbcmd.h"
#include "source.h"
#include "readline/readline.h"
#include "psymtab.h"
Go to the source code of this file.
Classes | |
struct | print_symbol_args |
Macros | |
#define | DEV_TTY "/dev/tty" |
Functions | |
static int | block_depth (struct block *) |
void | _initialize_symmisc (void) |
static int | print_symbol (void *) |
void | print_symbol_bcache_statistics (void) |
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 objfile *objfile, struct symtab *symtab, struct ui_file *outfile) |
static void | dump_symtab (struct objfile *objfile, struct symtab *symtab, struct ui_file *outfile) |
static void | maintenance_print_symbols (char *args, int from_tty) |
static void | maintenance_print_msymbols (char *args, int from_tty) |
static void | maintenance_print_objfiles (char *regexp, int from_tty) |
static void | maintenance_info_symtabs (char *regexp, int from_tty) |
static void | maintenance_check_symtabs (char *ignore, int from_tty) |
static int | maintenance_expand_name_matcher (const char *symname, void *data) |
static int | maintenance_expand_file_matcher (const char *filename, void *data, int basenames) |
static void | maintenance_expand_symtabs (char *args, int from_tty) |
Variables | |
FILE * | std_in |
FILE * | std_out |
FILE * | std_err |
#define DEV_TTY "/dev/tty" |
Definition at line 44 of file symmisc.c.
Referenced by maintenance_print_msymbols(), and maintenance_print_symbols().
void _initialize_symmisc | ( | void | ) |
Definition at line 955 of file symmisc.c.
References _, add_cmd(), class_maintenance, maintenance_check_symtabs(), maintenance_expand_symtabs(), maintenance_info_symtabs(), maintenance_print_msymbols(), maintenance_print_objfiles(), maintenance_print_symbols(), maintenanceinfolist, maintenancelist, maintenanceprintlist, std_err, std_in, and std_out.
Definition at line 940 of file symmisc.c.
References BLOCK_SUPERBLOCK.
Referenced by ada_add_local_symbols(), and dump_symtab_1().
Definition at line 198 of file symmisc.c.
References _, ALL_OBJFILE_MSYMBOLS, minimal_symbol::filename, fprintf_filtered(), fputs_filtered(), get_objfile_arch(), objfile_per_bfd_storage::minimal_symbol_count, mst_abs, mst_bss, mst_data, mst_file_bss, mst_file_data, mst_file_text, mst_solib_trampoline, mst_text, mst_text_gnu_ifunc, mst_unknown, MSYMBOL_DEMANGLED_NAME, MSYMBOL_LINKAGE_NAME, MSYMBOL_OBJ_SECTION, MSYMBOL_TYPE, MSYMBOL_VALUE_ADDRESS, objfile::obfd, objfile_name(), paddress(), objfile::per_bfd, objfile::sections, obj_section::the_bfd_section, and warning().
Referenced by maintenance_print_msymbols().
|
static |
Definition at line 161 of file symmisc.c.
References ALL_OBJFILE_FILETABS, objfile::compunit_symtabs, quick_symbol_functions::dump, gdb_print_host_address(), gdb_stdout, objfile_per_bfd_storage::minimal_symbol_count, objfile::obfd, objfile_name(), objfile::per_bfd, printf_filtered(), sym_fns::qf, objfile::sf, SYMTAB_OBJFILE, symtab_to_filename_for_display(), and wrap_here().
Referenced by maintenance_print_objfiles().
|
static |
Definition at line 385 of file symmisc.c.
References dump_symtab_1(), symtab::language, language_auto, language_unknown, and set_language().
Referenced by maintenance_print_symbols().
|
static |
Definition at line 285 of file symmisc.c.
References ALL_DICT_SYMBOLS, block_depth(), BLOCK_DICT, BLOCK_END, BLOCK_FUNCTION, BLOCK_START, BLOCK_SUPERBLOCK, BLOCKVECTOR_BLOCK, BLOCKVECTOR_NBLOCKS, catch_errors(), COMPUNIT_FILETABS, print_symbol_args::depth, dict_size(), fprintf_filtered(), fputs_filtered(), gdb_print_host_address(), print_symbol_args::gdbarch, get_objfile_arch(), linetable::item, symtab::language, language_str(), len, linetable_entry::line, linetable::nitems, objfile_name(), print_symbol_args::outfile, paddress(), linetable_entry::pc, print_spaces(), print_symbol(), RETURN_MASK_ERROR, print_symbol_args::symbol, SYMBOL_DEMANGLED_NAME, SYMBOL_LINKAGE_NAME, SYMTAB_BLOCKVECTOR, SYMTAB_COMPUNIT, SYMTAB_DIRNAME, SYMTAB_LINETABLE, and symtab_to_filename_for_display().
Referenced by dump_symtab().
|
static |
Definition at line 814 of file symmisc.c.
References ALL_OBJFILE_COMPUNITS, ALL_PSPACE_OBJFILES, ALL_PSPACES, COMPUNIT_BLOCKVECTOR, compunit_primary_filetab(), host_address_to_string(), objfile_name(), printf_filtered(), QUIT, symtab_to_filename_for_display(), and wrap_here().
Referenced by _initialize_symmisc().
|
static |
Definition at line 876 of file symmisc.c.
References QUIT.
Referenced by maintenance_expand_symtabs().
Definition at line 866 of file symmisc.c.
Referenced by maintenance_expand_symtabs().
|
static |
Definition at line 896 of file symmisc.c.
References _, ALL_DOMAIN, ALL_PSPACE_OBJFILES, ALL_PSPACES, do_cleanups(), error(), quick_symbol_functions::expand_symtabs_matching, gdb_buildargv(), maintenance_expand_file_matcher(), maintenance_expand_name_matcher(), make_cleanup_freeargv(), sym_fns::qf, re_comp(), and objfile::sf.
Referenced by _initialize_symmisc().
|
static |
Definition at line 720 of file symmisc.c.
References ALL_COMPUNIT_FILETABS, ALL_OBJFILE_COMPUNITS, ALL_PSPACE_OBJFILES, ALL_PSPACES, COMPUNIT_BLOCKVECTOR, COMPUNIT_DEBUGFORMAT, COMPUNIT_DIRNAME, COMPUNIT_PRODUCER, dont_repeat(), symtab::fullname, host_address_to_string(), symtab::linetable, objfile_name(), printf_filtered(), QUIT, re_comp(), symtab_to_filename_for_display(), and wrap_here().
Referenced by _initialize_symmisc().
|
static |
Definition at line 640 of file symmisc.c.
References _, ALL_PSPACE_OBJFILES, ALL_PSPACES, DEV_TTY, do_cleanups(), dont_repeat(), dump_msymbols(), error(), fprintf_filtered(), gdb_buildargv(), gdb_fopen(), gdb_realpath(), make_cleanup(), make_cleanup_freeargv(), make_cleanup_ui_file_delete(), objfile_name(), perror_with_name(), QUIT, and xfree().
Referenced by _initialize_symmisc().
|
static |
Definition at line 697 of file symmisc.c.
References ALL_PSPACE_OBJFILES, ALL_PSPACES, dont_repeat(), dump_objfile(), objfile_name(), QUIT, and re_comp().
Referenced by _initialize_symmisc().
|
static |
Definition at line 408 of file symmisc.c.
References _, ALL_FILETABS, DEV_TTY, do_cleanups(), dont_repeat(), dump_symtab(), error(), gdb_buildargv(), gdb_fopen(), make_cleanup(), make_cleanup_freeargv(), make_cleanup_ui_file_delete(), perror_with_name(), QUIT, symtab_to_filename_for_display(), and xfree().
Referenced by _initialize_symmisc().
void print_objfile_statistics | ( | void | ) |
Definition at line 96 of file symmisc.c.
References _, ALL_OBJFILE_COMPUNITS, ALL_OBJFILE_FILETABS, ALL_PSPACE_OBJFILES, ALL_PSPACES, bcache_memory_used(), objfile_per_bfd_storage::filename_cache, objfile_per_bfd_storage::macro_cache, objfile_per_bfd_storage::n_minsyms, objfile_name(), OBJSTAT, objfile::per_bfd, quick_symbol_functions::print_stats, printf_filtered(), psymbol_bcache_get_bcache(), objfile::psymbol_cache, pulongest(), sym_fns::qf, QUIT, objfile::sf, objfile_per_bfd_storage::storage_obstack, and SYMTAB_LINETABLE.
Referenced by maintenance_print_statistics().
|
static |
Definition at line 463 of file symmisc.c.
References BLOCK_END, BLOCK_START, check_typedef(), print_symbol_args::depth, fprintf_filtered(), fputs_filtered(), gdb_print_host_address(), hex_string(), LA_PRINT_TYPE, LABEL_DOMAIN, 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, paddress(), plongest(), print_spaces(), STRUCT_DOMAIN, symbol, SYMBOL_BLOCK_VALUE, SYMBOL_CLASS, SYMBOL_DOMAIN, SYMBOL_IS_ARGUMENT, SYMBOL_LINKAGE_NAME, SYMBOL_OBJ_SECTION, symbol_objfile(), SYMBOL_OBJFILE_OWNED, SYMBOL_PRINT_NAME, SYMBOL_TYPE, SYMBOL_VALUE, SYMBOL_VALUE_ADDRESS, SYMBOL_VALUE_BYTES, obj_section::the_bfd_section, TYPE_CODE, TYPE_CODE_ENUM, TYPE_CODE_STRUCT, TYPE_LENGTH, type_print_raw_options, and TYPE_TAG_NAME.
Referenced by dump_symtab_1().
void print_symbol_bcache_statistics | ( | void | ) |
Definition at line 75 of file symmisc.c.
References _, ALL_PSPACE_OBJFILES, ALL_PSPACES, objfile_per_bfd_storage::filename_cache, objfile_per_bfd_storage::macro_cache, objfile_name(), objfile::per_bfd, print_bcache_statistics(), printf_filtered(), psymbol_bcache_get_bcache(), objfile::psymbol_cache, and QUIT.
Referenced by maintenance_print_statistics().
FILE* std_err |
Definition at line 55 of file symmisc.c.
Referenced by _initialize_symmisc().
FILE* std_in |
Definition at line 53 of file symmisc.c.
Referenced by _initialize_symmisc().
FILE* std_out |
Definition at line 54 of file symmisc.c.
Referenced by _initialize_symmisc().