GDB (xrefs)
Loading...
Searching...
No Matches
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
 
struct  frscm_deleter
 

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_info_ptr frscm_frame_smob_to_frame (frame_smob *f_smob)
 
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 registry< inferior >::key< htab, frscm_deleterfrscm_inferior_data_key
 
static const scheme_integer_constant frame_integer_constants []
 
static const scheme_function frame_functions []
 

Macro Definition Documentation

◆ ENTRY

#define ENTRY ( X)    { #X, X }

◆ SET

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

Function Documentation

◆ frscm_eq_frame_smob()

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

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

References bp, frame_smob::frame_id, and frame_smob::inferior.

Referenced by frscm_inferior_frame_map().

◆ frscm_frame_smob_to_frame()

struct frame_info_ptr frscm_frame_smob_to_frame ( frame_smob * f_smob)

◆ frscm_free_frame_smob()

static size_t frscm_free_frame_smob ( SCM self)
static

◆ frscm_get_frame_arg_unsafe()

static SCM frscm_get_frame_arg_unsafe ( SCM self,
int arg_pos,
const char * func_name )
static

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

References frame_smob_name, and frscm_is_frame().

Referenced by frscm_get_frame_smob_arg_unsafe().

◆ frscm_get_frame_smob_arg_unsafe()

frame_smob * frscm_get_frame_smob_arg_unsafe ( SCM self,
int arg_pos,
const char * func_name )

◆ frscm_hash_frame_smob()

static hashval_t frscm_hash_frame_smob ( const void * p)
static

◆ frscm_inferior_frame_map()

static htab_t frscm_inferior_frame_map ( struct inferior * inferior)
static

◆ frscm_is_frame()

int frscm_is_frame ( SCM scm)

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

References frame_smob_tag.

Referenced by frscm_get_frame_arg_unsafe(), and gdbscm_frame_p().

◆ frscm_make_frame_smob()

static SCM frscm_make_frame_smob ( void )
static

◆ frscm_print_frame_smob()

static int frscm_print_frame_smob ( SCM self,
SCM port,
scm_print_state * pstate )
static

◆ frscm_scm_from_frame()

static SCM frscm_scm_from_frame ( struct frame_info * frame,
struct inferior * inferior )
static

◆ frscm_scm_from_frame_unsafe()

static SCM frscm_scm_from_frame_unsafe ( struct frame_info * frame,
struct inferior * inferior )
static

◆ gdbscm_frame_arch()

static SCM gdbscm_frame_arch ( SCM self)
static

◆ gdbscm_frame_block()

static SCM gdbscm_frame_block ( SCM self)
static

◆ gdbscm_frame_function()

static SCM gdbscm_frame_function ( SCM self)
static

◆ gdbscm_frame_name()

static SCM gdbscm_frame_name ( SCM self)
static

◆ gdbscm_frame_newer()

static SCM gdbscm_frame_newer ( SCM self)
static

◆ gdbscm_frame_older()

static SCM gdbscm_frame_older ( SCM self)
static

◆ gdbscm_frame_p()

static SCM gdbscm_frame_p ( SCM scm)
static

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

References frscm_is_frame().

◆ gdbscm_frame_pc()

static SCM gdbscm_frame_pc ( SCM self)
static

◆ gdbscm_frame_read_register()

static SCM gdbscm_frame_read_register ( SCM self,
SCM register_scm )
static

◆ gdbscm_frame_read_var()

static SCM gdbscm_frame_read_var ( SCM self,
SCM symbol_scm,
SCM rest )
static

◆ gdbscm_frame_sal()

static SCM gdbscm_frame_sal ( SCM self)
static

◆ gdbscm_frame_select()

static SCM gdbscm_frame_select ( SCM self)
static

◆ gdbscm_frame_type()

static SCM gdbscm_frame_type ( SCM self)
static

◆ gdbscm_frame_unwind_stop_reason()

static SCM gdbscm_frame_unwind_stop_reason ( SCM self)
static

◆ gdbscm_frame_valid_p()

static SCM gdbscm_frame_valid_p ( SCM self)
static

◆ gdbscm_initialize_frames()

void gdbscm_initialize_frames ( void )

◆ gdbscm_newest_frame()

static SCM gdbscm_newest_frame ( void )
static

◆ gdbscm_selected_frame()

static SCM gdbscm_selected_frame ( void )
static

◆ gdbscm_unwind_stop_reason_string()

static SCM gdbscm_unwind_stop_reason_string ( SCM reason_scm)
static

Variable Documentation

◆ block_keyword

SCM block_keyword
static

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

Referenced by gdbscm_frame_read_var(), and gdbscm_initialize_frames().

◆ frame_functions

const scheme_function frame_functions[]
static

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

Referenced by gdbscm_initialize_frames().

◆ frame_integer_constants

const scheme_integer_constant frame_integer_constants[]
static
Initial value:
=
{
#define ENTRY(X)
#define SET(name, description) \
}
@ ARCH_FRAME
Definition frame.h:200
@ DUMMY_FRAME
Definition frame.h:190
@ TAILCALL_FRAME
Definition frame.h:195
@ SIGTRAMP_FRAME
Definition frame.h:198
@ NORMAL_FRAME
Definition frame.h:187
@ SENTINEL_FRAME
Definition frame.h:203
@ INLINE_FRAME
Definition frame.h:193
#define END_INTEGER_CONSTANTS
#define ENTRY(X)

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

Referenced by gdbscm_initialize_frames().

◆ frame_smob_name

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

◆ frame_smob_tag

scm_t_bits frame_smob_tag
static

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

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

◆ frscm_inferior_data_key

const registry<inferior>::key<htab, frscm_deleter> frscm_inferior_data_key
static

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

Referenced by frscm_inferior_frame_map().