GDB (xrefs)
Classes | Macros | Functions | Variables
scm-frame.c File Reference
#include "defs.h"
#include "block.h"
#include "frame.h"
#include "inferior.h"
#include "objfiles.h"
#include "symfile.h"
#include "symtab.h"
#include "stack.h"
#include "user-regs.h"
#include "value.h"
#include "guile-internal.h"
#include "unwind_stop_reasons.def"

Go to the source code of this file.

Classes

struct  _frame_smob
 

Macros

#define ENTRY(X)   { #X, X }
 
#define SET(name, description)   { "FRAME_" #name, name },
 

Functions

static hashval_t frscm_hash_frame_smob (const void *p)
 
static int frscm_eq_frame_smob (const void *ap, const void *bp)
 
static htab_t frscm_inferior_frame_map (struct inferior *inferior)
 
static size_t frscm_free_frame_smob (SCM self)
 
static int frscm_print_frame_smob (SCM self, SCM port, scm_print_state *pstate)
 
static SCM frscm_make_frame_smob (void)
 
int frscm_is_frame (SCM scm)
 
static SCM gdbscm_frame_p (SCM scm)
 
static SCM frscm_scm_from_frame (struct frame_info *frame, struct inferior *inferior)
 
static SCM frscm_scm_from_frame_unsafe (struct frame_info *frame, struct inferior *inferior)
 
static SCM frscm_get_frame_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
frame_smobfrscm_get_frame_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
struct frame_infofrscm_frame_smob_to_frame (frame_smob *f_smob)
 
static int frscm_mark_frame_invalid (void **slot, void *info)
 
static void frscm_del_inferior_frames (struct inferior *inferior, void *datum)
 
static SCM gdbscm_frame_valid_p (SCM self)
 
static SCM gdbscm_frame_name (SCM self)
 
static SCM gdbscm_frame_type (SCM self)
 
static SCM gdbscm_frame_arch (SCM self)
 
static SCM gdbscm_frame_unwind_stop_reason (SCM self)
 
static SCM gdbscm_frame_pc (SCM self)
 
static SCM gdbscm_frame_block (SCM self)
 
static SCM gdbscm_frame_function (SCM self)
 
static SCM gdbscm_frame_older (SCM self)
 
static SCM gdbscm_frame_newer (SCM self)
 
static SCM gdbscm_frame_sal (SCM self)
 
static SCM gdbscm_frame_read_register (SCM self, SCM register_scm)
 
static SCM gdbscm_frame_read_var (SCM self, SCM symbol_scm, SCM rest)
 
static SCM gdbscm_frame_select (SCM self)
 
static SCM gdbscm_newest_frame (void)
 
static SCM gdbscm_selected_frame (void)
 
static SCM gdbscm_unwind_stop_reason_string (SCM reason_scm)
 
void gdbscm_initialize_frames (void)
 

Variables

static const char frame_smob_name [] = "gdb:frame"
 
static scm_t_bits frame_smob_tag
 
static SCM block_keyword
 
static const struct inferior_data * frscm_inferior_data_key
 
static const scheme_integer_constant frame_integer_constants []
 
static const scheme_function frame_functions []
 

Macro Definition Documentation

#define ENTRY (   X)    { #X, X }
#define SET (   name,
  description 
)    { "FRAME_" #name, name },

Function Documentation

static void frscm_del_inferior_frames ( struct inferior inferior,
void *  datum 
)
static

Definition at line 380 of file scm-frame.c.

References frscm_mark_frame_invalid().

Referenced by gdbscm_initialize_frames().

static int frscm_eq_frame_smob ( const void *  ap,
const void *  bp 
)
static

Definition at line 105 of file scm-frame.c.

References _frame_smob::frame_id, frame_id_eq(), and _frame_smob::inferior.

Referenced by frscm_inferior_frame_map().

struct frame_info* frscm_frame_smob_to_frame ( frame_smob f_smob)
static size_t frscm_free_frame_smob ( SCM  self)
static
static SCM frscm_get_frame_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static

Definition at line 293 of file scm-frame.c.

References frame_smob_name, and frscm_is_frame().

Referenced by frscm_get_frame_smob_arg_unsafe().

frame_smob* frscm_get_frame_smob_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static hashval_t frscm_hash_frame_smob ( const void *  p)
static
static htab_t frscm_inferior_frame_map ( struct inferior inferior)
static
int frscm_is_frame ( SCM  scm)

Definition at line 201 of file scm-frame.c.

References frame_smob_tag.

Referenced by frscm_get_frame_arg_unsafe(), and gdbscm_frame_p().

static SCM frscm_make_frame_smob ( void  )
static
static int frscm_mark_frame_invalid ( void **  slot,
void *  info 
)
static

Definition at line 365 of file scm-frame.c.

References _frame_smob::inferior.

Referenced by frscm_del_inferior_frames().

static int frscm_print_frame_smob ( SCM  self,
SCM  port,
scm_print_state *  pstate 
)
static
static SCM frscm_scm_from_frame ( struct frame_info frame,
struct inferior inferior 
)
static
static SCM frscm_scm_from_frame_unsafe ( struct frame_info frame,
struct inferior inferior 
)
static
static SCM gdbscm_frame_arch ( SCM  self)
static
static SCM gdbscm_frame_block ( SCM  self)
static
static SCM gdbscm_frame_function ( SCM  self)
static
static SCM gdbscm_frame_name ( SCM  self)
static
static SCM gdbscm_frame_newer ( SCM  self)
static
static SCM gdbscm_frame_older ( SCM  self)
static
static SCM gdbscm_frame_p ( SCM  scm)
static

Definition at line 209 of file scm-frame.c.

References frscm_is_frame().

static SCM gdbscm_frame_pc ( SCM  self)
static
static SCM gdbscm_frame_read_register ( SCM  self,
SCM  register_scm 
)
static
static SCM gdbscm_frame_read_var ( SCM  self,
SCM  symbol_scm,
SCM  rest 
)
static
static SCM gdbscm_frame_sal ( SCM  self)
static
static SCM gdbscm_frame_select ( SCM  self)
static
static SCM gdbscm_frame_type ( SCM  self)
static
static SCM gdbscm_frame_unwind_stop_reason ( SCM  self)
static
static SCM gdbscm_frame_valid_p ( SCM  self)
static
void gdbscm_initialize_frames ( void  )
static SCM gdbscm_newest_frame ( void  )
static
static SCM gdbscm_selected_frame ( void  )
static
static SCM gdbscm_unwind_stop_reason_string ( SCM  reason_scm)
static

Variable Documentation

SCM block_keyword
static

Definition at line 76 of file scm-frame.c.

Referenced by gdbscm_frame_read_var(), and gdbscm_initialize_frames().

const scheme_function frame_functions[]
static

Definition at line 1071 of file scm-frame.c.

const scheme_integer_constant frame_integer_constants[]
static

Definition at line 1049 of file scm-frame.c.

const char frame_smob_name[] = "gdb:frame"
static
scm_t_bits frame_smob_tag
static

Definition at line 73 of file scm-frame.c.

Referenced by frscm_is_frame(), frscm_make_frame_smob(), and gdbscm_initialize_frames().

const struct inferior_data* frscm_inferior_data_key
static

Definition at line 78 of file scm-frame.c.

Referenced by frscm_inferior_frame_map(), and gdbscm_initialize_frames().