GDB (xrefs)
Functions | Variables
/tmp/gdb-8.1/gdb/progspace.c File Reference
#include "defs.h"
#include "gdbcmd.h"
#include "objfiles.h"
#include "arch-utils.h"
#include "gdbcore.h"
#include "solib.h"
#include "gdbthread.h"

Go to the source code of this file.

Functions

struct address_spacenew_address_space (void)
 
struct address_spacemaybe_new_address_space (void)
 
static void free_address_space (struct address_space *aspace)
 
int address_space_num (struct address_space *aspace)
 
static void init_address_spaces (void)
 
struct program_spaceadd_program_space (struct address_space *aspace)
 
static void release_program_space (struct program_space *pspace)
 
struct program_spaceclone_program_space (struct program_space *dest, struct program_space *src)
 
void set_current_program_space (struct program_space *pspace)
 
int program_space_empty_p (struct program_space *pspace)
 
void delete_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)
 
int number_of_program_spaces (void)
 
void update_address_spaces (void)
 
void clear_program_space_solib_cache (struct program_space *pspace)
 
void initialize_progspace (void)
 

Variables

int last_program_space_num = 0
 
struct program_spaceprogram_spaces
 
struct program_spacecurrent_program_space
 
static int highest_address_space_num
 

Function Documentation

◆ add_program_space()

struct program_space* add_program_space ( struct address_space aspace)

◆ address_space_num()

int address_space_num ( struct address_space aspace)

Definition at line 94 of file progspace.c.

References address_space::num.

◆ clear_program_space_solib_cache()

void clear_program_space_solib_cache ( struct program_space pspace)

Definition at line 411 of file progspace.c.

References free_char_ptr_vec(), and VEC_free.

Referenced by handle_solib_event(), and release_program_space().

◆ clone_program_space()

struct program_space* clone_program_space ( struct program_space dest,
struct program_space src 
)

◆ delete_program_space()

void delete_program_space ( struct program_space pspace)

◆ free_address_space()

static void free_address_space ( struct address_space aspace)
static

Definition at line 87 of file progspace.c.

References xfree().

Referenced by release_program_space(), and update_address_spaces().

◆ init_address_spaces()

static void init_address_spaces ( void  )
static

Definition at line 102 of file progspace.c.

References highest_address_space_num.

Referenced by update_address_spaces().

◆ initialize_progspace()

void initialize_progspace ( void  )

◆ maintenance_info_program_spaces_command()

static void maintenance_info_program_spaces_command ( const char *  args,
int  from_tty 
)
static

◆ maybe_new_address_space()

struct address_space* maybe_new_address_space ( void  )

◆ new_address_space()

struct address_space* new_address_space ( void  )

◆ number_of_program_spaces()

int number_of_program_spaces ( void  )

Definition at line 353 of file progspace.c.

References ALL_PSPACES.

Referenced by print_one_breakpoint_location().

◆ print_program_space()

static void print_program_space ( struct ui_out uiout,
int  requested 
)
static

◆ program_space_empty_p()

int program_space_empty_p ( struct program_space pspace)

Definition at line 206 of file progspace.c.

References find_inferior_for_program_space().

Referenced by delete_inferior().

◆ release_program_space()

static void release_program_space ( struct program_space pspace)
static

◆ set_current_program_space()

void set_current_program_space ( struct program_space pspace)

◆ update_address_spaces()

void update_address_spaces ( void  )

◆ valid_program_space_id()

static int valid_program_space_id ( int  num)
static

Definition at line 320 of file progspace.c.

References ALL_PSPACES, and program_space::num.

Referenced by maintenance_info_program_spaces_command().

Variable Documentation

◆ current_program_space

struct program_space* current_program_space

Definition at line 35 of file progspace.c.

Referenced by ada_clear_symbol_cache(), ada_get_tcb_types_info(), auto_load_info_scripts(), auto_load_objfile_script_1(), bpfinishpy_init(), breakpoint_init_inferior(), breakpoint_re_set_default(), breakpoint_re_set_thread(), cache_symbol(), call_function_by_hand_dummy(), check_status_catch_solib(), clear_section_scripts(), count_symtabs_and_blocks(), create_breakpoint(), create_clear_objfiles_event_object(), create_internal_breakpoint(), create_new_frame(), delete_program_space(), disable_breakpoints_before_startup(), disable_breakpoints_in_shlibs(), display_command(), do_one_display(), elf_gnu_ifunc_resolve_by_cache(), elf_gnu_ifunc_resolve_by_got(), elf_gnu_ifunc_resolver_return_stop(), enable_breakpoints_after_startup(), filter_sals(), find_entry(), find_function_start_sal(), find_pc_sect_line(), find_pc_section(), find_pretty_printer_from_progspace(), follow_exec(), func_command(), gdbpy_get_current_progspace(), gdbpy_get_matching_xmethod_workers(), gdbpy_solib_name(), gdbscm_current_progspace(), get_current_frame(), get_darwin_info(), get_dsbt_info(), get_jit_program_space_data(), get_main_info(), get_remote_exec_file(), get_svr4_info(), handle_vfork_child_exec_or_exit(), info_line_command(), init_catchpoint(), initialize_inferiors(), initialize_progspace(), linespec_expression_to_pc(), linespec_state_constructor(), lookup_global_symbol(), lookup_static_symbol(), mark_breakpoints_out(), minsym_found(), objfiles_changed(), one_breakpoint_xfer_memory(), post_create_inferior(), ppscm_find_pretty_printer_from_progspace(), print_program_space(), print_solib_event(), ptid_from_atcb_common(), re_set_exception_catchpoint(), read_atcb(), read_known_tasks_list(), release_program_space(), remote_add_inferior(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), remove_solib_event_breakpoints_at_next_stop(), remove_symbol_file_command(), select_source_symtab(), set_breakpoint_location_function(), set_current_program_space(), set_longjmp_breakpoint(), set_longjmp_breakpoint_for_call_dummy(), set_remote_exec_file(), set_std_terminate_breakpoint(), solib_add(), source_section_scripts(), svr4_handle_solib_event(), symtab_new_objfile_observer(), target_dcache_get(), target_dcache_get_or_init(), target_dcache_init_p(), target_dcache_invalidate(), tui_set_disassem_content(), update_address_spaces(), update_breakpoints_after_exec(), update_solib_list(), watch_command_1(), and watchpoint_in_thread_scope().

◆ highest_address_space_num

int highest_address_space_num
static

Definition at line 38 of file progspace.c.

Referenced by init_address_spaces(), and new_address_space().

◆ last_program_space_num

int last_program_space_num = 0

Definition at line 29 of file progspace.c.

Referenced by add_program_space().

◆ program_spaces

struct program_space* program_spaces