GDB (xrefs)
Loading...
Searching...
No Matches
Macros | Functions
scm-utils.c File Reference
#include "defs.h"
#include "guile-internal.h"

Go to the source code of this file.

Macros

#define CHECK_TYPE(ok, arg, position, func_name, expected_type)
 

Functions

void gdbscm_define_variables (const scheme_variable *variables, int is_public)
 
void gdbscm_define_functions (const scheme_function *functions, int is_public)
 
void gdbscm_define_integer_constants (const scheme_integer_constant *constants, int is_public)
 
void gdbscm_printf (SCM port, const char *format,...)
 
void gdbscm_debug_display (SCM obj)
 
void gdbscm_debug_write (SCM obj)
 
static int count_keywords (const SCM *keywords)
 
static int validate_arg_format (const char *format)
 
static SCM extract_arg (char format_char, SCM arg, void *argp, const char *func_name, int position)
 
static int lookup_keyword (const SCM *keyword_list, SCM keyword)
 
static SCM gdbscm_parse_function_args_1 (const char *func_name, int beginning_arg_pos, const SCM *keywords, const char *format, va_list args)
 
void gdbscm_parse_function_args (const char *func_name, int beginning_arg_pos, const SCM *keywords, const char *format,...)
 
SCM gdbscm_scm_from_longest (LONGEST l)
 
LONGEST gdbscm_scm_to_longest (SCM l)
 
SCM gdbscm_scm_from_ulongest (ULONGEST l)
 
ULONGEST gdbscm_scm_to_ulongest (SCM u)
 
void gdbscm_dynwind_xfree (void *ptr)
 
int gdbscm_is_procedure (SCM proc)
 
char * gdbscm_gc_xstrdup (const char *str)
 
const char *const * gdbscm_gc_dup_argv (char **argv)
 
int gdbscm_guile_version_is_at_least (int major, int minor, int micro)
 

Macro Definition Documentation

◆ CHECK_TYPE

#define CHECK_TYPE ( ok,
arg,
position,
func_name,
expected_type )
Value:
do { \
if (!(ok)) \
{ \
return gdbscm_make_type_error ((func_name), (position), (arg), \
(expected_type)); \
} \
} while (0)
SCM gdbscm_make_type_error(const char *subr, int arg_pos, SCM bad_value, const char *expected_type)

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

Referenced by extract_arg().

Function Documentation

◆ count_keywords()

static int count_keywords ( const SCM * keywords)
static

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

Referenced by gdbscm_parse_function_args_1().

◆ extract_arg()

static SCM extract_arg ( char format_char,
SCM arg,
void * argp,
const char * func_name,
int position )
static

◆ gdbscm_debug_display()

void gdbscm_debug_display ( SCM obj)

Definition at line 92 of file scm-utils.c.

◆ gdbscm_debug_write()

void gdbscm_debug_write ( SCM obj)

Definition at line 104 of file scm-utils.c.

◆ gdbscm_define_functions()

void gdbscm_define_functions ( const scheme_function * functions,
int is_public )

◆ gdbscm_define_integer_constants()

void gdbscm_define_integer_constants ( const scheme_integer_constant * constants,
int is_public )

◆ gdbscm_define_variables()

void gdbscm_define_variables ( const scheme_variable * variables,
int is_public )

Definition at line 29 of file scm-utils.c.

References scheme_variable::name, and scheme_variable::value.

◆ gdbscm_dynwind_xfree()

void gdbscm_dynwind_xfree ( void * ptr)

Definition at line 584 of file scm-utils.c.

References xfree().

Referenced by gdbscm_parse_command_name(), gdbscm_set_breakpoint_stop_x(), and gdbscm_value_to_string().

◆ gdbscm_gc_dup_argv()

const char *const * gdbscm_gc_dup_argv ( char ** argv)

Definition at line 613 of file scm-utils.c.

Referenced by compute_enum_list().

◆ gdbscm_gc_xstrdup()

char * gdbscm_gc_xstrdup ( const char * str)

◆ gdbscm_guile_version_is_at_least()

int gdbscm_guile_version_is_at_least ( int major,
int minor,
int micro )

◆ gdbscm_is_procedure()

int gdbscm_is_procedure ( SCM proc)

◆ gdbscm_parse_function_args()

void gdbscm_parse_function_args ( const char * func_name,
int beginning_arg_pos,
const SCM * keywords,
const char * format,
... )

◆ gdbscm_parse_function_args_1()

static SCM gdbscm_parse_function_args_1 ( const char * func_name,
int beginning_arg_pos,
const SCM * keywords,
const char * format,
va_list args )
static

◆ gdbscm_printf()

void gdbscm_printf ( SCM port,
const char * format,
... )

Definition at line 79 of file scm-utils.c.

◆ gdbscm_scm_from_longest()

SCM gdbscm_scm_from_longest ( LONGEST l)

◆ gdbscm_scm_from_ulongest()

SCM gdbscm_scm_from_ulongest ( ULONGEST l)

◆ gdbscm_scm_to_longest()

LONGEST gdbscm_scm_to_longest ( SCM l)

Definition at line 557 of file scm-utils.c.

Referenced by extract_arg(), vlscm_convert_number(), and vlscm_convert_typed_number().

◆ gdbscm_scm_to_ulongest()

ULONGEST gdbscm_scm_to_ulongest ( SCM u)

Definition at line 576 of file scm-utils.c.

Referenced by extract_arg(), vlscm_convert_number(), and vlscm_convert_typed_number().

◆ lookup_keyword()

static int lookup_keyword ( const SCM * keyword_list,
SCM keyword )
static

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

Referenced by gdbscm_parse_function_args_1().

◆ validate_arg_format()

static int validate_arg_format ( const char * format)
static

Definition at line 134 of file scm-utils.c.

Referenced by gdbscm_parse_function_args_1().