GDB (xrefs)
Classes | Functions | Variables
scm-progspace.c File Reference
#include "defs.h"
#include "charset.h"
#include "progspace.h"
#include "objfiles.h"
#include "language.h"
#include "arch-utils.h"
#include "guile-internal.h"

Go to the source code of this file.

Classes

struct  _pspace_smob
 

Functions

SCM psscm_pspace_smob_pretty_printers (const pspace_smob *p_smob)
 
static int psscm_print_pspace_smob (SCM self, SCM port, scm_print_state *pstate)
 
static SCM psscm_make_pspace_smob (void)
 
static void psscm_release_pspace (pspace_smob *p_smob)
 
static void psscm_handle_pspace_deleted (struct program_space *pspace, void *datum)
 
static int psscm_is_pspace (SCM scm)
 
static SCM gdbscm_progspace_p (SCM scm)
 
pspace_smobpsscm_pspace_smob_from_pspace (struct program_space *pspace)
 
SCM psscm_scm_from_pspace (struct program_space *pspace)
 
static SCM psscm_get_pspace_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static pspace_smobpsscm_get_pspace_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static int psscm_is_valid (pspace_smob *p_smob)
 
static pspace_smobpsscm_get_valid_pspace_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static SCM gdbscm_progspace_valid_p (SCM self)
 
static SCM gdbscm_progspace_filename (SCM self)
 
static SCM gdbscm_progspace_objfiles (SCM self)
 
static SCM gdbscm_progspace_pretty_printers (SCM self)
 
static SCM gdbscm_set_progspace_pretty_printers_x (SCM self, SCM printers)
 
static SCM gdbscm_current_progspace (void)
 
static SCM gdbscm_progspaces (void)
 
void gdbscm_initialize_pspaces (void)
 

Variables

static const char pspace_smob_name [] = "gdb:progspace"
 
static scm_t_bits pspace_smob_tag
 
static const struct program_space_data * psscm_pspace_data_key
 
static const scheme_function pspace_functions []
 

Function Documentation

static SCM gdbscm_current_progspace ( void  )
static

Definition at line 342 of file scm-progspace.c.

References current_program_space, and psscm_scm_from_pspace().

void gdbscm_initialize_pspaces ( void  )
static SCM gdbscm_progspace_filename ( SCM  self)
static
static SCM gdbscm_progspace_objfiles ( SCM  self)
static
static SCM gdbscm_progspace_p ( SCM  scm)
static

Definition at line 147 of file scm-progspace.c.

References psscm_is_pspace().

static SCM gdbscm_progspace_pretty_printers ( SCM  self)
static
static SCM gdbscm_progspace_valid_p ( SCM  self)
static
static SCM gdbscm_progspaces ( void  )
static

Definition at line 355 of file scm-progspace.c.

References ALL_PSPACES, cleanup_check::ps, and psscm_scm_from_pspace().

static SCM gdbscm_set_progspace_pretty_printers_x ( SCM  self,
SCM  printers 
)
static
static SCM psscm_get_pspace_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static

Definition at line 190 of file scm-progspace.c.

References pspace_smob_name, and psscm_is_pspace().

Referenced by psscm_get_pspace_smob_arg_unsafe().

static pspace_smob* psscm_get_pspace_smob_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static
static pspace_smob* psscm_get_valid_pspace_smob_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static
static void psscm_handle_pspace_deleted ( struct program_space pspace,
void *  datum 
)
static

Definition at line 127 of file scm-progspace.c.

References gdb_assert, _pspace_smob::pspace, and psscm_release_pspace().

Referenced by gdbscm_initialize_pspaces().

static int psscm_is_pspace ( SCM  scm)
static

Definition at line 139 of file scm-progspace.c.

References pspace_smob_tag.

Referenced by gdbscm_progspace_p(), and psscm_get_pspace_arg_unsafe().

static int psscm_is_valid ( pspace_smob p_smob)
static

Definition at line 214 of file scm-progspace.c.

References _pspace_smob::pspace.

Referenced by psscm_get_valid_pspace_smob_arg_unsafe().

static SCM psscm_make_pspace_smob ( void  )
static
static int psscm_print_pspace_smob ( SCM  self,
SCM  port,
scm_print_state *  pstate 
)
static
pspace_smob* psscm_pspace_smob_from_pspace ( struct program_space pspace)
SCM psscm_pspace_smob_pretty_printers ( const pspace_smob p_smob)

Definition at line 61 of file scm-progspace.c.

References _pspace_smob::pretty_printers.

Referenced by ppscm_find_pretty_printer_from_progspace().

static void psscm_release_pspace ( pspace_smob p_smob)
static

Definition at line 118 of file scm-progspace.c.

References _pspace_smob::containing_scm, and _pspace_smob::pspace.

Referenced by psscm_handle_pspace_deleted().

SCM psscm_scm_from_pspace ( struct program_space pspace)

Variable Documentation

const scheme_function pspace_functions[]
static

Definition at line 374 of file scm-progspace.c.

const char pspace_smob_name[] = "gdb:progspace"
static
scm_t_bits pspace_smob_tag
static
const struct program_space_data* psscm_pspace_data_key
static

Definition at line 56 of file scm-progspace.c.

Referenced by gdbscm_initialize_pspaces(), and psscm_pspace_smob_from_pspace().