GDB (xrefs)
|
#include "defs.h"
#include "gdbcmd.h"
#include "objfiles.h"
#include "arch-utils.h"
#include "gdbcore.h"
#include "solib.h"
#include "solist.h"
#include "gdbthread.h"
#include "inferior.h"
#include <algorithm>
#include "cli/cli-style.h"
#include "observable.h"
Go to the source code of this file.
Functions | |
struct address_space * | maybe_new_address_space (void) |
static void | init_address_spaces (void) |
static void | remove_program_space (program_space *pspace) |
struct program_space * | clone_program_space (struct program_space *dest, struct program_space *src) |
void | set_current_program_space (struct program_space *pspace) |
static void | print_program_space (struct ui_out *uiout, int requested) |
static int | valid_program_space_id (int num) |
static void | maintenance_info_program_spaces_command (const char *args, int from_tty) |
void | update_address_spaces (void) |
void | initialize_progspace (void) |
Variables | |
static int | last_program_space_num = 0 |
std::vector< struct program_space * > | program_spaces |
struct program_space * | current_program_space |
static int | highest_address_space_num |
struct program_space * clone_program_space | ( | struct program_space * | dest, |
struct program_space * | src ) |
Definition at line 222 of file progspace.c.
References exec_file_attach(), program_space::exec_filename, objfile_name(), set_current_program_space(), symbol_file_add_main(), SYMFILE_DEFER_BP_RESET, and program_space::symfile_object_file.
Referenced by clone_inferior_command(), follow_fork_inferior(), and handle_vfork_child_exec_or_exit().
|
static |
Definition at line 75 of file progspace.c.
References highest_address_space_num.
Referenced by update_address_spaces().
void initialize_progspace | ( | void | ) |
Definition at line 445 of file progspace.c.
References add_cmd(), class_maintenance, current_program_space, maintenance_info_program_spaces_command(), and maintenanceinfolist.
Referenced by gdb_init().
|
static |
Definition at line 377 of file progspace.c.
References current_uiout, parse_and_eval_long(), print_program_space(), and valid_program_space_id().
Referenced by initialize_progspace().
struct address_space * maybe_new_address_space | ( | void | ) |
Definition at line 59 of file progspace.c.
References address_space::address_space(), gdbarch_has_shared_address_space(), program_spaces, and target_gdbarch().
Referenced by add_inferior_with_spaces(), clone_inferior_command(), handle_vfork_child_exec_or_exit(), remote_target::remote_add_inferior(), and update_address_spaces().
|
static |
Definition at line 269 of file progspace.c.
References all_inferiors(), current_program_space, ui_out::field_signed(), ui_out::field_skip(), ui_out::field_string(), file_name_style, gdb_printf(), inf::pid, program_spaces, cli_style_option::style(), switch_to_inferior_no_thread(), ui_out::table_body(), ui_out::table_header(), target_pid_to_str(), ui_out::text(), and ui_left.
Referenced by maintenance_info_program_spaces_command().
|
static |
Definition at line 85 of file progspace.c.
References program_spaces.
Referenced by program_space::~program_space().
void set_current_program_space | ( | struct program_space * | pspace | ) |
Definition at line 243 of file progspace.c.
References current_program_space, and reinit_frame_cache().
Referenced by add_matching_symbols_to_info(), clone_program_space(), collect_symtabs_from_filename(), convert_linespec_to_sals(), create_longjmp_master_breakpoint(), create_sals_line_offset(), create_std_terminate_master_breakpoint(), decode_digits_list_mode(), decode_digits_ordinary(), find_label_symbols(), find_method(), follow_fork_inferior(), handle_vfork_child_exec_or_exit(), iterate_over_all_matching_symtabs(), lookup_prefix_sym(), mi_cmd_execute(), mi_cmd_remove_inferior(), print_breakpoint_location(), print_sal_location(), ps_pglobal_lookup(), pspy_block_for_pc(), pspy_find_pc_line(), scoped_restore_current_inferior_for_memory::scoped_restore_current_inferior_for_memory(), search_minsyms_for_name(), switch_to_inferior_no_thread(), switch_to_thread_no_regs(), program_space::~program_space(), and scoped_restore_current_program_space::~scoped_restore_current_program_space().
void update_address_spaces | ( | void | ) |
Definition at line 403 of file progspace.c.
References address_space::address_space(), all_inferiors(), program_space::aspace, current_program_space, gdbarch_has_global_solist(), gdbarch_has_shared_address_space(), init_address_spaces(), maybe_new_address_space(), program_spaces, and target_gdbarch().
Referenced by remote_target::start_remote_1().
|
static |
Definition at line 363 of file progspace.c.
References program_space::num, and program_spaces.
Referenced by maintenance_info_program_spaces_command().
struct program_space* current_program_space |
Definition at line 40 of file progspace.c.
Referenced by ada_add_global_exceptions(), ada_add_standard_exceptions(), ada_catchpoint::ada_catchpoint(), ada_get_tcb_types_info(), add_nonlocal_symbols(), add_symbol_file_command(), add_symbol_file_from_memory_command(), add_symbol_overload_list_qualified(), add_vsyscall_page(), amd_dbgapi_target_breakpoint::amd_dbgapi_target_breakpoint(), auxv_all_objfiles_removed(), basic_lookup_transparent_type(), bpfinishpy_init(), breakpoint_init_inferior(), breakpoint_re_set_thread(), core_target::build_file_mappings(), cache_symbol(), call_function_by_hand_dummy(), captured_main_1(), catchpoint::catchpoint(), solib_catchpoint::check_status(), core_target::clear_core(), clear_current_source_symtab_and_line(), clear_solib(), clear_symtab_users(), collect_probes(), ada_language::collect_symbol_completion_matches(), compare_sections_command(), core_addr_to_ps_addr(), core_target_open(), count_symtabs_and_blocks(), create_breakpoint(), create_exception_master_breakpoint(), nto_procfs_target::create_inferior(), gdbsim_target::create_inferior(), rs6000_nat_target::create_inferior(), create_longjmp_master_breakpoint(), create_new_frame(), create_overlay_event_breakpoint(), create_std_terminate_master_breakpoint(), darwin_solib_create_inferior_hook(), default_collect_symbol_completion_matches_break_on(), default_gcore_arch(), default_gcore_target(), default_get_section_table(), default_iterate_over_objfiles_in_search_order(), default_print_insn(), disable_breakpoints_before_startup(), disable_breakpoints_in_shlibs(), display_command(), do_one_display(), tui_disasm_window::do_scroll_vertical(), dsbt_relocate_main_executable(), dwarf2_frame_find_fde(), elf_gnu_ifunc_resolver_return_stop(), elf_locate_base(), enable_break(), enable_break(), enable_break(), enable_break2(), enable_breakpoints_after_startup(), entry_point_address_query(), exception_catchpoint::exception_catchpoint(), exec_file_attach(), exec_read_partial_read_only(), exec_set_section_address(), expand_symtabs_matching(), fbsd_get_tls_index(), fbsd_vsyscall_range(), exec_target::files_info(), gdbsim_target::files_info(), find_debug_base_for_solib(), find_frame_for_function(), find_function_start_sal_1(), find_line_symtab(), find_main_name(), find_methods(), find_pc_mapped_section(), find_pc_overlay(), find_pc_sect_compunit_symtab(), find_pc_sect_line(), find_pc_section(), find_pretty_printer_from_objfiles(), find_pretty_printer_from_progspace(), find_probe_by_pc(), find_program_interpreter(), find_program_interpreter(), find_solib_for_objfile(), find_solib_trampoline_target(), find_symbol_at_address(), find_unwind_entry(), finish_new_objfile(), follow_exec(), program_space::free_all_objfiles(), frv_fdpic_find_canonical_descriptor(), frv_fdpic_find_global_pointer(), frv_fetch_objfile_link_map(), frv_relocate_main_executable(), gcore_create_callback(), gdb_bfd_scan_elf_dyntag(), gdb_print_insn_arm(), gdbarch_update_p(), gdbpy_get_matching_xmethod_workers(), gdbpy_lookup_static_symbols(), gdbscm_current_progspace(), gdbscm_objfiles(), gdbsim_target_open(), get_current_frame(), get_current_source_symtab_and_line(), get_darwin_info(), get_dsbt_info(), get_exec_file(), remote_target::get_offsets(), source_cache::get_plain_source_lines(), get_remote_exec_file(), get_sim_inferior_data(), get_symbol_leading_char(), thread_db_target::get_thread_local_address(), handle_vfork_child_exec_or_exit(), has_libpthread(), exec_target::has_memory(), have_full_symbols(), have_minimal_symbols(), have_partial_symbols(), info_auto_load_gdb_scripts(), info_auto_load_guile_scripts(), info_auto_load_python_scripts(), info_classes_command(), info_line_command(), info_selectors_command(), info_sharedlibrary_command(), info_source_command(), info_sources_worker(), info_symbol_command(), info_target_command(), initialize_inferiors(), initialize_progspace(), insert_single_step_breakpoint(), inside_main_func(), internal_breakpoint::internal_breakpoint(), iterate_over_all_matching_symtabs(), iterate_over_symtabs(), jit_breakpoint_re_set(), jit_find_objf_with_entry_addr(), jit_inferior_exit_hook(), linespec_expression_to_pc(), linespec_state_constructor(), list_overlays_command(), lm_base(), lm_base(), lookup_cached_symbol(), lookup_global_or_static_symbol(), lookup_minimal_symbol(), lookup_minimal_symbol_by_pc_name(), lookup_minimal_symbol_linkage(), lookup_minimal_symbol_text(), main_got(), main_language(), main_name(), maintenance_check_psymtabs(), maintenance_info_sections(), maintenance_print_msymbols(), maintenance_print_psymbols(), maintenance_print_symbols(), maintenance_translate_address(), objfile::make(), make_source_files_completion_list(), map_overlay_command(), map_symbol_filenames(), mark_breakpoints_out(), matching_obj_sections(), mi_cmd_file_list_shared_libraries(), minsym_found(), objfile_find_memory_regions(), objfile_purge_solibs(), objfiles_changed(), one_breakpoint_xfer_memory(), open_symbol_file_object(), overlay_invalidate_all(), nto_procfs_target::post_attach(), extended_remote_target::post_attach(), post_create_inferior(), ppscm_find_pretty_printer_from_objfiles(), ppscm_find_pretty_printer_from_progspace(), print_program_space(), print_section_info(), print_solib_event(), print_source_lines_base(), ps_addr_to_core_addr(), ps_pdmodel(), ptid_from_atcb_common(), exception_catchpoint::re_set(), code_breakpoint::re_set_default(), read_atcb(), read_known_tasks_list(), tui_source_window_base::refill(), reload_shared_libraries_1(), remote_target::remote_add_inferior(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), remove_solib_event_breakpoints_at_next_stop(), remove_symbol_file_command(), reopen_exec_file(), reread_symbols(), rw_common(), save_gdb_index_command(), scan_file_globals(), scoped_disasm_info_object::scoped_disasm_info_object(), global_symbol_searcher::search(), search_command_helper(), search_minsyms_for_name(), select_source_symtab(), set_can_use_agent(), set_current_program_space(), set_default_source_symtab_and_line(), set_longjmp_breakpoint(), set_longjmp_breakpoint_for_call_dummy(), set_remote_exec_file(), set_section_command(), set_std_terminate_breakpoint(), simple_overlay_update(), solib_add(), solib_aix_solib_create_inferior_hook(), solib_map_sections(), solib_read_symbols(), solib_used(), sort_cmp(), svr4_clear_solib(), svr4_current_sos(), svr4_current_sos_direct(), svr4_exec_displacement(), svr4_fetch_objfile_link_map(), svr4_handle_solib_event(), svr4_in_dynsym_resolve_code(), svr4_iterate_over_objfiles_in_search_order(), svr4_keep_data_in_core(), svr4_relocate_main_executable(), svr4_solib_create_inferior_hook(), symbol_file_add_from_memory(), symbol_file_clear(), syms_from_objfile_1(), target_dcache_get(), target_dcache_get_or_init(), target_dcache_init_p(), target_dcache_invalidate(), remote_target::trace_set_readonly_regions(), try_thread_db_load_from_pdir(), objfile::unlink(), unmap_overlay_command(), update_address_spaces(), update_breakpoints_after_exec(), update_solib_list(), validate_exec_file(), validate_files(), watch_command_1(), watchpoint_in_thread_scope(), windows_iterate_over_objfiles_in_search_order(), windows_solib_create_inferior_hook(), z80_overlay_update(), z80_overlay_update_1(), and program_space::~program_space().
|
static |
Definition at line 43 of file progspace.c.
Referenced by init_address_spaces().
|
static |
Definition at line 34 of file progspace.c.
std::vector<struct program_space *> program_spaces |
Definition at line 37 of file progspace.c.
Referenced by exec_target::close(), collect_symtabs_from_filename(), create_longjmp_master_breakpoint(), create_std_terminate_master_breakpoint(), forget_cached_source_info(), gdbscm_progspaces(), iterate_over_all_matching_symtabs(), maintenance_check_symtabs(), maintenance_expand_symtabs(), maintenance_flush_symbol_cache(), maintenance_info_line_tables(), maintenance_info_psymtabs(), maintenance_info_symtabs(), maintenance_print_objfiles(), maintenance_print_symbol_cache(), maintenance_print_symbol_cache_statistics(), maybe_new_address_space(), parse_probes(), print_objfile_statistics(), print_one_breakpoint_location(), print_program_space(), program_space::program_space(), remove_program_space(), search_minsyms_for_name(), set_debug_symfile(), set_symbol_cache_size(), update_address_spaces(), and valid_program_space_id().