GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include <ctype.h>
#include <cmath>
#include <signal.h>
#include "command.h"
#include "gdbcmd.h"
#include "symtab.h"
#include "block.h"
#include "gdbtypes.h"
#include "demangle.h"
#include "gdbcore.h"
#include "expression.h"
#include "language.h"
#include "symfile.h"
#include "objfiles.h"
#include "value.h"
#include "top.h"
#include "maint.h"
#include "gdbsupport/selftest.h"
#include "inferior.h"
#include "gdbsupport/thread-pool.h"
#include "cli/cli-decode.h"
#include "cli/cli-utils.h"
#include "cli/cli-setshow.h"
#include "cli/cli-cmds.h"
Go to the source code of this file.
Classes | |
struct | single_bfd_flag_info |
struct | maint_info_sections_opts |
struct | maintenance_selftest_options |
Functions | |
static void | maintenance_do_deprecate (const char *, int) |
static void | maintenance_dump_me (const char *args, int from_tty) |
static void | maintenance_internal_error (const char *args, int from_tty) |
static void | maintenance_internal_warning (const char *args, int from_tty) |
static void | maintenance_demangler_warning (const char *args, int from_tty) |
static void | maintenance_demangle (const char *args, int from_tty) |
static void | maintenance_time_display (const char *args, int from_tty) |
static void | maintenance_space_display (const char *args, int from_tty) |
static bool | match_substring (const char *string, const char *substr) |
static bool | match_bfd_flags (const char *string, flagword flags) |
static void | print_bfd_flags (flagword flags) |
static void | maint_print_section_info (const char *name, flagword flags, CORE_ADDR addr, CORE_ADDR endaddr, unsigned long filepos, int addr_size) |
static int | index_digits (int count) |
static void | print_section_index (bfd *abfd, asection *asect, int index_digits) |
static void | print_bfd_section_info (bfd *abfd, asection *asect, const char *arg, int index_digits) |
static void | print_objfile_section_info (bfd *abfd, struct obj_section *asect, const char *arg, int index_digits) |
obj_section * | maint_obj_section_from_bfd_section (bfd *abfd, asection *asection, objfile *ofile) |
static void | maint_print_all_sections (const char *header, bfd *abfd, objfile *objfile, const char *arg) |
static gdb::option::option_def_group | make_maint_info_sections_options_def_group (maint_info_sections_opts *cc_opts) |
static void | maint_info_sections_completer (struct cmd_list_element *cmd, completion_tracker &tracker, const char *text, const char *) |
static void | maintenance_info_sections (const char *arg, int from_tty) |
static void | maintenance_info_target_sections (const char *arg, int from_tty) |
static void | maintenance_print_statistics (const char *args, int from_tty) |
static void | maintenance_print_architecture (const char *args, int from_tty) |
static void | maintenance_translate_address (const char *arg, int from_tty) |
static void | maintenance_deprecate (const char *args, int from_tty) |
static void | maintenance_undeprecate (const char *args, int from_tty) |
static void | maintenance_with_cmd (const char *args, int from_tty) |
static void | maintenance_with_cmd_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *) |
static void | show_maintenance_profile_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | maintenance_set_profile_cmd (const char *args, int from_tty, struct cmd_list_element *c) |
static void | update_thread_pool_size () |
static void | maintenance_set_worker_threads (const char *args, int from_tty, struct cmd_list_element *c) |
static void | maintenance_show_worker_threads (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
void | set_per_command_time (int new_value) |
void | set_per_command_space (int new_value) |
static void | count_symtabs_and_blocks (int *nr_symtabs_ptr, int *nr_compunit_symtabs_ptr, int *nr_blocks_ptr) |
static void | set_per_command_cmd (const char *args, int from_tty) |
static std::array< gdb::option::option_def_group, 1 > | make_maintenance_selftest_option_group (maintenance_selftest_options *opts) |
static void | maintenance_selftest (const char *args, int from_tty) |
static void | maintenance_selftest_completer (cmd_list_element *cmd, completion_tracker &tracker, const char *text, const char *word) |
static void | maintenance_info_selftests (const char *arg, int from_tty) |
void | _initialize_maint_cmds () |
Variables | |
static const single_bfd_flag_info | bfd_flag_info [] |
static const gdb::option::option_def | maint_info_sections_option_defs [] |
struct cmd_list_element * | maintenance_set_cmdlist |
struct cmd_list_element * | maintenance_show_cmdlist |
static bool | maintenance_profile_p |
static int | n_worker_threads = -1 |
static bool | per_command_time |
static bool | per_command_space |
static bool | per_command_symtab |
static struct cmd_list_element * | per_command_setlist |
static struct cmd_list_element * | per_command_showlist |
struct maintenance_selftest_options | user_maintenance_selftest_options |
static const gdb::option::option_def | maintenance_selftest_option_defs [] |
void _initialize_maint_cmds | ( | ) |
Definition at line 1210 of file maint.c.
Referenced by initialize_all_files().
|
static |
Definition at line 931 of file maint.c.
References current_program_space, and program_space::objfiles().
Referenced by scoped_command_stats::scoped_command_stats(), and scoped_command_stats::~scoped_command_stats().
|
static |
Definition at line 244 of file maint.c.
Referenced by maint_print_all_sections(), maintenance_info_target_sections(), print_bfd_section_info(), print_objfile_section_info(), and print_section_index().
|
static |
Definition at line 421 of file maint.c.
References advance_to_expression_complete_word_point(), bfd_flag_info, complete_on_enum(), gdb::option::complete_options(), f(), flags, make_maint_info_sections_options_def_group(), and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR.
obj_section * maint_obj_section_from_bfd_section | ( | bfd * | abfd, |
asection * | asection, | ||
objfile * | ofile ) |
Definition at line 330 of file maint.c.
References gdb_bfd_section_index(), objfile::sections_end, and objfile::sections_start.
Referenced by i386_thiscall_push_dummy_call(), and maint_print_all_sections().
|
static |
Definition at line 360 of file maint.c.
References gdb_bfd_count_sections(), gdb_bfd_sections(), gdb_printf(), gdb_puts(), gdb_stdout, index_digits(), maint_obj_section_from_bfd_section(), print_bfd_section_info(), print_objfile_section_info(), objfile::sections_start, and obj_section::the_bfd_section.
Referenced by maintenance_info_sections().
|
static |
Definition at line 225 of file maint.c.
References flags, gdb_printf(), name, and print_bfd_flags().
Referenced by print_bfd_section_info(), and print_objfile_section_info().
|
static |
Definition at line 107 of file maint.c.
References gdb_printf().
|
static |
Definition at line 97 of file maint.c.
References demangler_warning().
|
static |
Definition at line 630 of file maint.c.
References gdb_printf(), and maintenance_do_deprecate().
|
static |
Definition at line 663 of file maint.c.
References alias, cmd_list_element::cmd_deprecated, cmd_list_element::deprecated_warn_user, gdb_printf(), lookup_cmd_composition(), cmd_list_element::malloced_replacement, cmd_list_element::replacement, and xfree().
Referenced by maintenance_deprecate(), and maintenance_undeprecate().
|
static |
|
static |
Definition at line 444 of file maint.c.
References core_bfd, current_program_space, program_space::exec_bfd(), maint_print_all_sections(), make_maint_info_sections_options_def_group(), program_space::objfiles(), gdb::option::process_options(), and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR.
|
static |
Definition at line 1195 of file maint.c.
References gdb_printf().
|
static |
Definition at line 469 of file maint.c.
References current_inferior(), gdb_bfd_count_sections(), gdb_printf(), gdbarch_addr_bit(), gdbarch_from_bfd(), index_digits(), print_bfd_section_info(), and target_get_section_table().
|
static |
|
static |
|
static |
Definition at line 523 of file maint.c.
References gdb_stdout, gdbarch_dump(), and get_current_arch().
|
static |
Definition at line 517 of file maint.c.
References print_objfile_statistics().
|
static |
Definition at line 1156 of file maint.c.
References gdb_printf(), make_maintenance_selftest_option_group(), gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR, and user_maintenance_selftest_options.
|
static |
Definition at line 1174 of file maint.c.
References completion_tracker::add_completion(), gdb::option::complete_options(), make_maintenance_selftest_option_group(), and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR.
|
static |
|
static |
Definition at line 862 of file maint.c.
References update_thread_pool_size().
|
static |
Definition at line 869 of file maint.c.
References gdb_printf(), n_worker_threads, and thread_count().
|
static |
Definition at line 122 of file maint.c.
References gdb_printf(), and set_per_command_space().
|
static |
Definition at line 113 of file maint.c.
References gdb_printf(), and set_per_command_time().
|
static |
Definition at line 545 of file maint.c.
References current_program_space, gdb_printf(), lookup_minimal_symbol_by_pc(), lookup_minimal_symbol_by_pc_section(), bound_minimal_symbol::minsym, program_space::multi_objfile_p(), bound_minimal_symbol::obj_section(), obj_section::objfile, objfile_name(), program_space::objfiles(), parse_and_eval_address(), general_symbol_info::print_name(), objfile::sections(), obj_section::the_bfd_section, and bound_minimal_symbol::value_address().
|
static |
Definition at line 644 of file maint.c.
References gdb_printf(), and maintenance_do_deprecate().
|
static |
Definition at line 757 of file maint.c.
References maintenance_set_cmdlist, and with_command_1().
|
static |
Definition at line 765 of file maint.c.
References with_command_completer_1().
|
inlinestatic |
Definition at line 413 of file maint.c.
References maint_info_sections_option_defs.
Referenced by maint_info_sections_completer(), and maintenance_info_sections().
|
static |
Definition at line 1146 of file maint.c.
References maintenance_selftest_option_defs.
Referenced by maintenance_selftest(), and maintenance_selftest_completer().
|
static |
Definition at line 197 of file maint.c.
References bfd_flag_info, f(), flags, and match_substring().
Referenced by print_bfd_section_info(), and print_objfile_section_info().
|
static |
Definition at line 133 of file maint.c.
Referenced by match_bfd_flags(), print_bfd_section_info(), and print_objfile_section_info().
|
static |
Definition at line 215 of file maint.c.
References bfd_flag_info, f(), flags, and gdb_printf().
Referenced by maint_print_section_info().
|
static |
Definition at line 273 of file maint.c.
References flags, gdbarch_addr_bit(), gdbarch_from_bfd(), index_digits(), maint_print_section_info(), match_bfd_flags(), match_substring(), name, and print_section_index().
Referenced by maint_print_all_sections(), and maintenance_info_target_sections().
|
static |
Definition at line 304 of file maint.c.
References obj_section::addr(), obj_section::endaddr(), flags, gdbarch_addr_bit(), gdbarch_from_bfd(), index_digits(), maint_print_section_info(), match_bfd_flags(), match_substring(), name, print_section_index(), and obj_section::the_bfd_section.
Referenced by maint_print_all_sections().
|
static |
Definition at line 254 of file maint.c.
References gdb_bfd_section_index(), gdb_printf(), and index_digits().
Referenced by print_bfd_section_info(), and print_objfile_section_info().
|
static |
Definition at line 1107 of file maint.c.
References do_set_command(), cmd_list_element::next, parse_cli_boolean_value(), per_command_setlist, set_cmd, cmd_list_element::type, cmd_list_element::var, and var_boolean.
void set_per_command_space | ( | int | new_value | ) |
Definition at line 923 of file maint.c.
References per_command_space.
Referenced by captured_main_1(), and maintenance_space_display().
void set_per_command_time | ( | int | new_value | ) |
Definition at line 914 of file maint.c.
References per_command_time.
Referenced by captured_main_1(), and maintenance_time_display().
|
static |
Definition at line 776 of file maint.c.
References gdb_printf().
|
static |
Definition at line 849 of file maint.c.
References n_worker_threads.
Referenced by maintenance_set_worker_threads().
|
static |
Definition at line 176 of file maint.c.
Referenced by maint_info_sections_completer(), match_bfd_flags(), and print_bfd_flags().
|
static |
Definition at line 400 of file maint.c.
Referenced by make_maint_info_sections_options_def_group().
|
static |
Definition at line 1131 of file maint.c.
Referenced by make_maintenance_selftest_option_group().
struct cmd_list_element* maintenance_set_cmdlist |
Definition at line 751 of file maint.c.
Referenced by _initialize_mips_linux_nat(), _initialize_s390_nat(), _initialize_windows_tdep(), add_internal_problem_command(), add_show_debug_regs_command(), add_show_debug_regs_command(), and maintenance_with_cmd().
struct cmd_list_element* maintenance_show_cmdlist |
Definition at line 752 of file maint.c.
Referenced by _initialize_mips_linux_nat(), _initialize_s390_nat(), _initialize_windows_tdep(), add_internal_problem_command(), add_show_debug_regs_command(), add_show_debug_regs_command(), gdb_maint_setting_internal_fn(), and gdb_maint_setting_str_internal_fn().
|
static |
Definition at line 845 of file maint.c.
Referenced by maintenance_show_worker_threads(), and update_thread_pool_size().
|
static |
Definition at line 907 of file maint.c.
Referenced by set_per_command_cmd().
|
static |
|
static |
Definition at line 899 of file maint.c.
Referenced by scoped_command_stats::scoped_command_stats(), set_per_command_space(), and scoped_command_stats::~scoped_command_stats().
|
static |
Definition at line 903 of file maint.c.
Referenced by scoped_command_stats::scoped_command_stats(), and scoped_command_stats::~scoped_command_stats().
|
static |
Definition at line 895 of file maint.c.
Referenced by scoped_command_stats::scoped_command_stats(), set_per_command_time(), and scoped_command_stats::~scoped_command_stats().
struct maintenance_selftest_options user_maintenance_selftest_options |
Referenced by maintenance_selftest().