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

Go to the source code of this file.

Classes

struct  _objfile_smob
 

Functions

SCM ofscm_objfile_smob_pretty_printers (objfile_smob *o_smob)
 
static int ofscm_print_objfile_smob (SCM self, SCM port, scm_print_state *pstate)
 
static SCM ofscm_make_objfile_smob (void)
 
static void ofscm_release_objfile (objfile_smob *o_smob)
 
static void ofscm_handle_objfile_deleted (struct objfile *objfile, void *datum)
 
static int ofscm_is_objfile (SCM scm)
 
static SCM gdbscm_objfile_p (SCM scm)
 
objfile_smobofscm_objfile_smob_from_objfile (struct objfile *objfile)
 
SCM ofscm_scm_from_objfile (struct objfile *objfile)
 
static SCM ofscm_get_objfile_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static objfile_smobofscm_get_objfile_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static int ofscm_is_valid (objfile_smob *o_smob)
 
static objfile_smobofscm_get_valid_objfile_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static SCM gdbscm_objfile_valid_p (SCM self)
 
static SCM gdbscm_objfile_filename (SCM self)
 
static SCM gdbscm_objfile_progspace (SCM self)
 
static SCM gdbscm_objfile_pretty_printers (SCM self)
 
static SCM gdbscm_set_objfile_pretty_printers_x (SCM self, SCM printers)
 
void gdbscm_source_objfile_script (const struct extension_language_defn *extlang, struct objfile *objfile, FILE *file, const char *filename)
 
void gdbscm_execute_objfile_script (const struct extension_language_defn *extlang, struct objfile *objfile, const char *name, const char *script)
 
static SCM gdbscm_get_current_objfile (void)
 
static SCM gdbscm_objfiles (void)
 
void gdbscm_initialize_objfiles (void)
 

Variables

static const char objfile_smob_name [] = "gdb:objfile"
 
static scm_t_bits objfile_smob_tag
 
static const struct objfile_data * ofscm_objfile_data_key
 
static struct objfileofscm_current_objfile
 
static const scheme_function objfile_functions []
 

Function Documentation

void gdbscm_execute_objfile_script ( const struct extension_language_defn extlang,
struct objfile objfile,
const char *  name,
const char *  script 
)

Definition at line 335 of file scm-objfile.c.

References fprintf_filtered(), gdb_stderr, gdbscm_safe_eval_string(), and xfree().

static SCM gdbscm_get_current_objfile ( void  )
static

Definition at line 359 of file scm-objfile.c.

References ofscm_scm_from_objfile().

void gdbscm_initialize_objfiles ( void  )
static SCM gdbscm_objfile_filename ( SCM  self)
static
static SCM gdbscm_objfile_p ( SCM  scm)
static

Definition at line 137 of file scm-objfile.c.

References ofscm_is_objfile().

static SCM gdbscm_objfile_pretty_printers ( SCM  self)
static
static SCM gdbscm_objfile_progspace ( SCM  self)
static
static SCM gdbscm_objfile_valid_p ( SCM  self)
static
static SCM gdbscm_objfiles ( void  )
static

Definition at line 371 of file scm-objfile.c.

References ALL_OBJFILES, and ofscm_scm_from_objfile().

static SCM gdbscm_set_objfile_pretty_printers_x ( SCM  self,
SCM  printers 
)
static
void gdbscm_source_objfile_script ( const struct extension_language_defn extlang,
struct objfile objfile,
FILE *  file,
const char *  filename 
)

Definition at line 310 of file scm-objfile.c.

References fprintf_filtered(), gdb_stderr, gdbscm_safe_source_script(), and xfree().

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

Definition at line 180 of file scm-objfile.c.

References objfile_smob_name, and ofscm_is_objfile().

Referenced by ofscm_get_objfile_smob_arg_unsafe().

static objfile_smob* ofscm_get_objfile_smob_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static
static objfile_smob* ofscm_get_valid_objfile_smob_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static
static void ofscm_handle_objfile_deleted ( struct objfile objfile,
void *  datum 
)
static

Definition at line 117 of file scm-objfile.c.

References gdb_assert, _objfile_smob::objfile, and ofscm_release_objfile().

Referenced by gdbscm_initialize_objfiles().

static int ofscm_is_objfile ( SCM  scm)
static

Definition at line 129 of file scm-objfile.c.

References objfile_smob_tag.

Referenced by gdbscm_objfile_p(), and ofscm_get_objfile_arg_unsafe().

static int ofscm_is_valid ( objfile_smob o_smob)
static

Definition at line 204 of file scm-objfile.c.

References _objfile_smob::objfile.

Referenced by ofscm_get_valid_objfile_smob_arg_unsafe().

static SCM ofscm_make_objfile_smob ( void  )
static
objfile_smob* ofscm_objfile_smob_from_objfile ( struct objfile objfile)
SCM ofscm_objfile_smob_pretty_printers ( objfile_smob o_smob)

Definition at line 58 of file scm-objfile.c.

References _objfile_smob::pretty_printers.

Referenced by ppscm_find_pretty_printer_from_objfiles().

static int ofscm_print_objfile_smob ( SCM  self,
SCM  port,
scm_print_state *  pstate 
)
static
static void ofscm_release_objfile ( objfile_smob o_smob)
static

Definition at line 108 of file scm-objfile.c.

References _objfile_smob::containing_scm, and _objfile_smob::objfile.

Referenced by ofscm_handle_objfile_deleted().

SCM ofscm_scm_from_objfile ( struct objfile objfile)

Variable Documentation

const scheme_function objfile_functions[]
static

Definition at line 390 of file scm-objfile.c.

const char objfile_smob_name[] = "gdb:objfile"
static
scm_t_bits objfile_smob_tag
static
struct objfile* ofscm_current_objfile
static

Definition at line 301 of file scm-objfile.c.

const struct objfile_data* ofscm_objfile_data_key
static

Definition at line 53 of file scm-objfile.c.

Referenced by gdbscm_initialize_objfiles(), and ofscm_objfile_smob_from_objfile().