GDB (xrefs)
Classes | Functions | Variables
/home/stan/gdb/src/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.

Classes

struct  address_space

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)
void remove_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)
static void restore_program_space (void *arg)
struct cleanupsave_current_program_space (void)
static int pspace_empty_p (struct program_space *pspace)
void prune_program_spaces (void)
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 (char *args, int from_tty)
int number_of_program_spaces (void)
void update_address_spaces (void)
struct cleanupsave_current_space_and_thread (void)
void switch_to_program_space_and_thread (struct program_space *pspace)
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

struct program_space* add_program_space ( struct address_space aspace) [read]
int address_space_num ( struct address_space aspace)

Definition at line 96 of file progspace.c.

References address_space::num.

Referenced by target_thread_address_space().

Definition at line 513 of file progspace.c.

References free_char_ptr_vec(), and VEC_free.

Referenced by handle_solib_event(), and release_program_space().

struct program_space* clone_program_space ( struct program_space dest,
struct program_space src 
) [read]
static void free_address_space ( struct address_space aspace) [static]

Definition at line 90 of file progspace.c.

References xfree().

Referenced by release_program_space(), and update_address_spaces().

static void init_address_spaces ( void  ) [static]

Definition at line 104 of file progspace.c.

References highest_address_space_num.

Referenced by update_address_spaces().

void initialize_progspace ( void  )
static void maintenance_info_program_spaces_command ( char *  args,
int  from_tty 
) [static]
struct address_space* maybe_new_address_space ( void  ) [read]
struct address_space* new_address_space ( void  ) [read]

Definition at line 409 of file progspace.c.

References ALL_PSPACES.

Referenced by print_one_breakpoint_location().

static void print_program_space ( struct ui_out uiout,
int  requested 
) [static]
void prune_program_spaces ( void  )
static int pspace_empty_p ( struct program_space pspace) [static]

Definition at line 254 of file progspace.c.

References find_inferior_for_program_space().

Referenced by prune_program_spaces().

static void release_program_space ( struct program_space pspace) [static]
void remove_program_space ( struct program_space pspace)

Definition at line 166 of file progspace.c.

References program_space::next, program_spaces, and release_program_space().

static void restore_program_space ( void *  arg) [static]

Definition at line 231 of file progspace.c.

References set_current_program_space().

Referenced by save_current_program_space().

struct cleanup* save_current_program_space ( void  ) [read]
struct cleanup* save_current_space_and_thread ( void  ) [read]
void set_current_program_space ( struct program_space pspace)
void update_address_spaces ( void  )
static int valid_program_space_id ( int  num) [static]

Definition at line 376 of file progspace.c.

References ALL_PSPACES, and program_space::num.

Referenced by maintenance_info_program_spaces_command().


Variable Documentation

Definition at line 35 of file progspace.c.

Referenced by allocate_objfile(), auto_load_info_scripts(), bpfinishpy_init(), breakpoint_init_inferior(), breakpoint_re_set_thread(), breakpoint_xfer_memory(), call_function_by_hand(), check_status_catch_solib(), clear_section_scripts(), create_breakpoint(), create_internal_breakpoint(), create_new_frame(), 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_function_start_sal(), find_pc_sect_line(), find_pc_section(), follow_exec(), func_command(), get_current_frame(), get_darwin_info(), get_dsbt_info(), get_dynamics_objfile(), get_jit_program_space_data(), get_svr4_info(), get_tcb_types_info(), handle_vfork_child_exec_or_exit(), init_catchpoint(), initialize_inferiors(), jv_per_objfile_free(), line_info(), linespec_expression_to_pc(), linespec_state_constructor(), mark_breakpoints_out(), objfiles_changed(), post_create_inferior(), print_solib_event(), prune_program_spaces(), ptid_from_atcb_common(), read_atcb(), read_known_tasks_list(), remote_add_inferior(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), remove_thread_event_breakpoints(), select_source_symtab(), set_breakpoint_location_function(), set_longjmp_breakpoint(), set_longjmp_breakpoint_for_call_dummy(), set_std_terminate_breakpoint(), solib_add(), source_gdb_script_for_objfile(), svr4_handle_solib_event(), tui_set_disassem_content(), update_breakpoints_after_exec(), update_solib_list(), watch_command_1(), and watchpoint_in_thread_scope().

Definition at line 38 of file progspace.c.

Referenced by init_address_spaces(), and new_address_space().

Definition at line 29 of file progspace.c.

Referenced by add_program_space().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines