GDB (xrefs)
Classes | Functions | Variables
scm-lazy-string.c File Reference
#include "defs.h"
#include "charset.h"
#include "value.h"
#include "valprint.h"
#include "language.h"
#include "guile-internal.h"

Go to the source code of this file.

Classes

struct  lazy_string_smob
 

Functions

static size_t lsscm_free_lazy_string_smob (SCM self)
 
static int lsscm_print_lazy_string_smob (SCM self, SCM port, scm_print_state *pstate)
 
static SCM lsscm_make_lazy_string_smob (CORE_ADDR address, int length, const char *encoding, struct type *type)
 
int lsscm_is_lazy_string (SCM scm)
 
static SCM gdbscm_lazy_string_p (SCM scm)
 
SCM lsscm_make_lazy_string (CORE_ADDR address, int length, const char *encoding, struct type *type)
 
static SCM lsscm_get_lazy_string_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static SCM gdbscm_lazy_string_address (SCM self)
 
static SCM gdbscm_lazy_string_length (SCM self)
 
static SCM gdbscm_lazy_string_encoding (SCM self)
 
static SCM gdbscm_lazy_string_type (SCM self)
 
static SCM gdbscm_lazy_string_to_value (SCM self)
 
struct valuelsscm_safe_lazy_string_to_value (SCM string, int arg_pos, const char *func_name, SCM *except_scmp)
 
void lsscm_val_print_lazy_string (SCM string, struct ui_file *stream, const struct value_print_options *options)
 
void gdbscm_initialize_lazy_strings (void)
 

Variables

static const char lazy_string_smob_name [] = "gdb:lazy-string"
 
static scm_t_bits lazy_string_smob_tag
 
static const scheme_function lazy_string_functions []
 

Function Documentation

void gdbscm_initialize_lazy_strings ( void  )
static SCM gdbscm_lazy_string_address ( SCM  self)
static
static SCM gdbscm_lazy_string_encoding ( SCM  self)
static
static SCM gdbscm_lazy_string_length ( SCM  self)
static
static SCM gdbscm_lazy_string_p ( SCM  scm)
static

Definition at line 138 of file scm-lazy-string.c.

References lsscm_is_lazy_string().

static SCM gdbscm_lazy_string_to_value ( SCM  self)
static
static SCM gdbscm_lazy_string_type ( SCM  self)
static
static size_t lsscm_free_lazy_string_smob ( SCM  self)
static

Definition at line 67 of file scm-lazy-string.c.

References lazy_string_smob::encoding, and xfree().

Referenced by gdbscm_initialize_lazy_strings().

static SCM lsscm_get_lazy_string_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static
int lsscm_is_lazy_string ( SCM  scm)
SCM lsscm_make_lazy_string ( CORE_ADDR  address,
int  length,
const char *  encoding,
struct type type 
)
static SCM lsscm_make_lazy_string_smob ( CORE_ADDR  address,
int  length,
const char *  encoding,
struct type type 
)
static
static int lsscm_print_lazy_string_smob ( SCM  self,
SCM  port,
scm_print_state *  pstate 
)
static
struct value* lsscm_safe_lazy_string_to_value ( SCM  string,
int  arg_pos,
const char *  func_name,
SCM *  except_scmp 
)
void lsscm_val_print_lazy_string ( SCM  string,
struct ui_file stream,
const struct value_print_options options 
)

Variable Documentation

const scheme_function lazy_string_functions[]
static
Initial value:
=
{
{ "lazy-string?", 1, 0, 0, gdbscm_lazy_string_p,
"\
Return #t if the object is a <gdb:lazy-string> object." },
{ "lazy-string-address", 1, 0, 0, gdbscm_lazy_string_address,
"\
Return the address of the lazy-string." },
{ "lazy-string-length", 1, 0, 0, gdbscm_lazy_string_length,
"\
Return the length of the lazy-string.\n\
If the length is -1 then the length is determined by the first null\n\
of appropriate width." },
{ "lazy-string-encoding", 1, 0, 0, gdbscm_lazy_string_encoding,
"\
Return the encoding of the lazy-string." },
{ "lazy-string-type", 1, 0, 0, gdbscm_lazy_string_type,
"\
Return the <gdb:type> of the lazy-string." },
{ "lazy-string->value", 1, 0, 0, gdbscm_lazy_string_to_value,
"\
Return the <gdb:value> representation of the lazy-string." },
}
static SCM gdbscm_lazy_string_length(SCM self)
static SCM gdbscm_lazy_string_address(SCM self)
static SCM gdbscm_lazy_string_encoding(SCM self)
static SCM gdbscm_lazy_string_to_value(SCM self)
static SCM gdbscm_lazy_string_type(SCM self)
#define END_FUNCTIONS
static SCM gdbscm_lazy_string_p(SCM scm)

Definition at line 322 of file scm-lazy-string.c.

const char lazy_string_smob_name[] = "gdb:lazy-string"
static
scm_t_bits lazy_string_smob_tag
static