GDB (xrefs)
Classes | Macros | Typedefs | Functions | Variables
/tmp/gdb-7.10/gdb/progspace.h File Reference
#include "target.h"
#include "vec.h"
#include "gdb_vecs.h"
#include "registry.h"

Go to the source code of this file.

Classes

struct  program_space
 

Macros

#define symfile_objfile   current_program_space->symfile_object_file
 
#define object_files   current_program_space->objfiles
 
#define current_target_sections   (&current_program_space->target_sections)
 
#define ALL_PSPACES(pspace)   for ((pspace) = program_spaces; (pspace) != NULL; (pspace) = (pspace)->next)
 

Typedefs

typedef struct so_listso_list_ptr
 

Functions

 DEF_VEC_P (so_list_ptr)
 
struct program_spaceadd_program_space (struct address_space *aspace)
 
int number_of_program_spaces (void)
 
struct program_spaceclone_program_space (struct program_space *dest, struct program_space *src)
 
struct cleanupsave_current_program_space (void)
 
void set_current_program_space (struct program_space *pspace)
 
struct cleanupsave_current_space_and_thread (void)
 
void switch_to_program_space_and_thread (struct program_space *pspace)
 
struct address_spacenew_address_space (void)
 
struct address_spacemaybe_new_address_space (void)
 
int address_space_num (struct address_space *aspace)
 
void update_address_spaces (void)
 
void prune_program_spaces (void)
 
void clear_program_space_solib_cache (struct program_space *)
 
 DECLARE_REGISTRY (program_space)
 
 DECLARE_REGISTRY (address_space)
 

Variables

struct program_spaceprogram_spaces
 
struct program_spacecurrent_program_space
 

Macro Definition Documentation

#define ALL_PSPACES (   pspace)    for ((pspace) = program_spaces; (pspace) != NULL; (pspace) = (pspace)->next)
#define current_target_sections   (&current_program_space->target_sections)
#define object_files   current_program_space->objfiles
#define symfile_objfile   current_program_space->symfile_object_file

Typedef Documentation

typedef struct so_list* so_list_ptr

Definition at line 38 of file progspace.h.

Function Documentation

struct program_space* add_program_space ( struct address_space aspace)
int address_space_num ( struct address_space aspace)

Definition at line 106 of file progspace.c.

References address_space::num.

void clear_program_space_solib_cache ( struct program_space )

Definition at line 493 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 
)
DECLARE_REGISTRY ( program_space  )
DECLARE_REGISTRY ( address_space  )
DEF_VEC_P ( so_list_ptr  )
struct address_space* maybe_new_address_space ( void  )
struct address_space* new_address_space ( void  )
int number_of_program_spaces ( void  )

Definition at line 390 of file progspace.c.

References ALL_PSPACES.

Referenced by print_one_breakpoint_location().

void prune_program_spaces ( void  )
struct cleanup* save_current_program_space ( void  )
struct cleanup* save_current_space_and_thread ( void  )
void set_current_program_space ( struct program_space pspace)
void switch_to_program_space_and_thread ( struct program_space pspace)
void update_address_spaces ( void  )

Variable Documentation

struct program_space* current_program_space

Definition at line 35 of file progspace.c.

Referenced by ada_clear_symbol_cache(), allocate_objfile(), auto_load_info_scripts(), auto_load_objfile_script_1(), bpfinishpy_init(), breakpoint_init_inferior(), 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(), 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_dynamics_objfile(), get_jit_program_space_data(), get_main_info(), 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(), lookup_global_symbol(), lookup_static_symbol(), mark_breakpoints_out(), objfiles_changed(), one_breakpoint_xfer_memory(), post_create_inferior(), ppscm_find_pretty_printer_from_progspace(), 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_solib_event_breakpoints_at_next_stop(), remove_symbol_file_command(), 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_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_breakpoints_after_exec(), update_solib_list(), watch_command_1(), and watchpoint_in_thread_scope().

struct program_space* program_spaces