GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
guile-internal.h File Reference
#include "hashtab.h"
#include "extension-priv.h"
#include "symtab.h"
#include "libguile.h"
#include "objfiles.h"

Go to the source code of this file.

Classes

struct  scheme_variable
 
struct  scheme_function
 
struct  scheme_integer_constant
 
struct  gdb_smob
 
struct  chained_gdb_smob
 
struct  eqable_gdb_smob
 
struct  gdbscm_gdb_exception
 

Macros

#define END_VARIABLES   { NULL, SCM_BOOL_F, NULL }
 
#define END_FUNCTIONS   { NULL, 0, 0, 0, NULL, NULL }
 
#define END_INTEGER_CONSTANTS   { NULL, 0 }
 
#define GDBSCM_ARG_NONE   0
 
#define scm_make_smob_type   USE_gdbscm_make_smob_type_INSTEAD
 
#define scm_is_bool   USE_gdbscm_is_bool_INSTEAD
 
#define scm_is_false   USE_gdbscm_is_false_INSTEAD
 
#define scm_is_true   USE_gdbscm_is_true_INSTEAD
 
#define gdbscm_is_bool(scm)    (scm_is_eq ((scm), SCM_BOOL_F) || scm_is_eq ((scm), SCM_BOOL_T))
 
#define gdbscm_is_false(scm)   scm_is_eq ((scm), SCM_BOOL_F)
 
#define gdbscm_is_true(scm)   (!gdbscm_is_false (scm))
 
#define FUNC_NAME   __func__
 
#define GDB_SMOB_HEAD    int empty_base_class;
 
#define GDBSCM_HANDLE_GDB_EXCEPTION(exception)
 

Typedefs

typedef int excp_matcher_func(SCM key)
 
typedef int() gsmob_pred_func(SCM)
 

Functions

static scm_t_subr as_a_scm_t_subr (SCM(*func)(void))
 
static scm_t_subr as_a_scm_t_subr (SCM(*func)(SCM))
 
static scm_t_subr as_a_scm_t_subr (SCM(*func)(SCM, SCM))
 
static scm_t_subr as_a_scm_t_subr (SCM(*func)(SCM, SCM, SCM))
 
static SCM scm_new_smob (scm_t_bits tc, scm_t_bits data)
 
void gdbscm_define_variables (const scheme_variable *, int is_public)
 
void gdbscm_define_functions (const scheme_function *, int is_public)
 
void gdbscm_define_integer_constants (const scheme_integer_constant *, int is_public)
 
void gdbscm_printf (SCM port, const char *format,...) ATTRIBUTE_PRINTF(2
 
void void gdbscm_debug_display (SCM obj)
 
void gdbscm_debug_write (SCM obj)
 
void gdbscm_parse_function_args (const char *function_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 *)
 
const char *const * gdbscm_gc_dup_argv (char **argv)
 
int gdbscm_guile_version_is_at_least (int major, int minor, int micro)
 
scm_t_bits gdbscm_make_smob_type (const char *name, size_t size)
 
void gdbscm_init_gsmob (gdb_smob *base)
 
void gdbscm_init_chained_gsmob (chained_gdb_smob *base)
 
void gdbscm_init_eqable_gsmob (eqable_gdb_smob *base, SCM containing_scm)
 
htab_t gdbscm_create_eqable_gsmob_ptr_map (htab_hash hash_fn, htab_eq eq_fn)
 
eqable_gdb_smob ** gdbscm_find_eqable_gsmob_ptr_slot (htab_t htab, eqable_gdb_smob *base)
 
void gdbscm_fill_eqable_gsmob_ptr_slot (eqable_gdb_smob **slot, eqable_gdb_smob *base)
 
void gdbscm_clear_eqable_gsmob_ptr_slot (htab_t htab, eqable_gdb_smob *base)
 
SCM gdbscm_make_exception (SCM tag, SCM args)
 
int gdbscm_is_exception (SCM scm)
 
SCM gdbscm_exception_key (SCM excp)
 
SCM gdbscm_exception_args (SCM excp)
 
SCM gdbscm_make_exception_with_stack (SCM key, SCM args, SCM stack)
 
SCM gdbscm_make_error_scm (SCM key, SCM subr, SCM message, SCM args, SCM data)
 
SCM gdbscm_make_error (SCM key, const char *subr, const char *message, SCM args, SCM data)
 
SCM gdbscm_make_type_error (const char *subr, int arg_pos, SCM bad_value, const char *expected_type)
 
SCM gdbscm_make_invalid_object_error (const char *subr, int arg_pos, SCM bad_value, const char *error)
 
void gdbscm_invalid_object_error (const char *subr, int arg_pos, SCM bad_value, const char *error) ATTRIBUTE_NORETURN
 
SCM gdbscm_make_out_of_range_error (const char *subr, int arg_pos, SCM bad_value, const char *error)
 
void gdbscm_out_of_range_error (const char *subr, int arg_pos, SCM bad_value, const char *error) ATTRIBUTE_NORETURN
 
SCM gdbscm_make_misc_error (const char *subr, int arg_pos, SCM bad_value, const char *error)
 
void gdbscm_misc_error (const char *subr, int arg_pos, SCM bad_value, const char *error) ATTRIBUTE_NORETURN
 
void gdbscm_throw (SCM exception) ATTRIBUTE_NORETURN
 
SCM gdbscm_scm_from_gdb_exception (const gdbscm_gdb_exception &exception)
 
void gdbscm_throw_gdb_exception (gdbscm_gdb_exception exception) ATTRIBUTE_NORETURN
 
void gdbscm_print_exception_with_stack (SCM port, SCM stack, SCM key, SCM args)
 
void gdbscm_print_gdb_exception (SCM port, SCM exception)
 
gdb::unique_xmalloc_ptr< char > gdbscm_exception_message_to_string (SCM exception)
 
SCM gdbscm_make_memory_error (const char *subr, const char *msg, SCM args)
 
void gdbscm_memory_error (const char *subr, const char *msg, SCM args) ATTRIBUTE_NORETURN
 
const char * gdbscm_with_guile (const char *(*func)(void *), void *data)
 
SCM gdbscm_call_guile (SCM(*func)(void *), void *data, excp_matcher_func *ok_excps)
 
SCM gdbscm_safe_call_0 (SCM proc, excp_matcher_func *ok_excps)
 
SCM gdbscm_safe_call_1 (SCM proc, SCM arg0, excp_matcher_func *ok_excps)
 
SCM gdbscm_safe_call_2 (SCM proc, SCM arg0, SCM arg1, excp_matcher_func *ok_excps)
 
SCM gdbscm_safe_call_3 (SCM proc, SCM arg0, SCM arg1, SCM arg2, excp_matcher_func *ok_excps)
 
SCM gdbscm_safe_call_4 (SCM proc, SCM arg0, SCM arg1, SCM arg2, SCM arg3, excp_matcher_func *ok_excps)
 
SCM gdbscm_safe_apply_1 (SCM proc, SCM arg0, SCM args, excp_matcher_func *ok_excps)
 
SCM gdbscm_unsafe_call_1 (SCM proc, SCM arg0)
 
gdb::unique_xmalloc_ptr< char > gdbscm_safe_eval_string (const char *string, int display_result)
 
gdb::unique_xmalloc_ptr< char > gdbscm_safe_source_script (const char *filename)
 
void gdbscm_enter_repl (void)
 
struct gdbarcharscm_get_gdbarch (arch_smob *a_smob)
 
arch_smobarscm_get_arch_smob_arg_unsafe (SCM arch_scm, int arg_pos, const char *func_name)
 
SCM arscm_scm_from_arch (struct gdbarch *gdbarch)
 
SCM bkscm_scm_from_block (const struct block *block, struct objfile *objfile)
 
const struct blockbkscm_scm_to_block (SCM block_scm, int arg_pos, const char *func_name, SCM *excp)
 
char * gdbscm_parse_command_name (const char *name, const char *func_name, int arg_pos, struct cmd_list_element ***base_list, struct cmd_list_element **start_list)
 
int gdbscm_valid_command_class_p (int command_class)
 
char * gdbscm_canonicalize_command_name (const char *name, int want_trailing_space)
 
int frscm_is_frame (SCM scm)
 
frame_smobfrscm_get_frame_smob_arg_unsafe (SCM frame_scm, int arg_pos, const char *func_name)
 
struct frame_info_ptr frscm_frame_smob_to_frame (frame_smob *)
 
SCM itscm_iterator_smob_object (iterator_smob *i_smob)
 
SCM itscm_iterator_smob_progress (iterator_smob *i_smob)
 
void itscm_set_iterator_smob_progress_x (iterator_smob *i_smob, SCM progress)
 
const char * itscm_iterator_smob_name (void)
 
SCM gdbscm_make_iterator (SCM object, SCM progress, SCM next)
 
int itscm_is_iterator (SCM scm)
 
SCM gdbscm_end_of_iteration (void)
 
int itscm_is_end_of_iteration (SCM obj)
 
SCM itscm_safe_call_next_x (SCM iter, excp_matcher_func *ok_excps)
 
SCM itscm_get_iterator_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
int lsscm_is_lazy_string (SCM scm)
 
SCM lsscm_make_lazy_string (CORE_ADDR address, int length, const char *encoding, struct type *type)
 
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)
 
SCM ofscm_objfile_smob_pretty_printers (objfile_smob *o_smob)
 
objfile_smobofscm_objfile_smob_from_objfile (struct objfile *objfile)
 
SCM ofscm_scm_from_objfile (struct objfile *objfile)
 
SCM psscm_pspace_smob_pretty_printers (const pspace_smob *)
 
pspace_smobpsscm_pspace_smob_from_pspace (struct program_space *)
 
SCM psscm_scm_from_pspace (struct program_space *)
 
int gdbscm_scm_string_to_int (SCM string)
 
gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_c_string (SCM string)
 
SCM gdbscm_scm_from_c_string (const char *string)
 
SCM gdbscm_scm_from_printf (const char *format,...) ATTRIBUTE_PRINTF(1
 
SCM gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_string (SCM string, size_t *lenp, const char *charset, int strict, SCM *except_scmp)
 
SCM gdbscm_scm_from_string (const char *string, size_t len, const char *charset, int strict)
 
gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_host_string (SCM string, size_t *lenp, SCM *except)
 
SCM gdbscm_scm_from_host_string (const char *string, size_t len)
 
int syscm_is_symbol (SCM scm)
 
SCM syscm_scm_from_symbol (struct symbol *symbol)
 
struct symbolsyscm_get_valid_symbol_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
SCM stscm_scm_from_symtab (struct symtab *symtab)
 
SCM stscm_scm_from_sal (struct symtab_and_line sal)
 
int tyscm_is_type (SCM scm)
 
SCM tyscm_scm_from_type (struct type *type)
 
type_smobtyscm_get_type_smob_arg_unsafe (SCM type_scm, int arg_pos, const char *func_name)
 
struct typetyscm_scm_to_type (SCM t_scm)
 
struct typetyscm_type_smob_type (type_smob *t_smob)
 
SCM tyscm_scm_from_field (SCM type_scm, int field_num)
 
struct valuevlscm_scm_to_value (SCM scm)
 
int vlscm_is_value (SCM scm)
 
SCM vlscm_scm_from_value (struct value *value)
 
SCM vlscm_scm_from_value_no_release (struct value *value)
 
struct valuevlscm_convert_typed_value_from_scheme (const char *func_name, int obj_arg_pos, SCM obj, int type_arg_pos, SCM type_scm, struct type *type, SCM *except_scmp, struct gdbarch *gdbarch, const struct language_defn *language)
 
struct valuevlscm_convert_value_from_scheme (const char *func_name, int obj_arg_pos, SCM obj, SCM *except_scmp, struct gdbarch *gdbarch, const struct language_defn *language)
 
bool gdbscm_auto_load_enabled (const struct extension_language_defn *)
 
void gdbscm_preserve_values (const struct extension_language_defn *, struct objfile *, htab_t copied_types)
 
enum ext_lang_rc gdbscm_apply_val_pretty_printer (const struct extension_language_defn *, struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
 
int gdbscm_breakpoint_has_cond (const struct extension_language_defn *, struct breakpoint *b)
 
enum ext_lang_bp_stop gdbscm_breakpoint_cond_says_stop (const struct extension_language_defn *, struct breakpoint *b)
 
void gdbscm_initialize_arches (void)
 
void gdbscm_initialize_auto_load (void)
 
void gdbscm_initialize_blocks (void)
 
void gdbscm_initialize_breakpoints (void)
 
void gdbscm_initialize_commands (void)
 
void gdbscm_initialize_disasm (void)
 
void gdbscm_initialize_exceptions (void)
 
void gdbscm_initialize_frames (void)
 
void gdbscm_initialize_iterators (void)
 
void gdbscm_initialize_lazy_strings (void)
 
void gdbscm_initialize_math (void)
 
void gdbscm_initialize_objfiles (void)
 
void gdbscm_initialize_pretty_printers (void)
 
void gdbscm_initialize_parameters (void)
 
void gdbscm_initialize_ports (void)
 
void gdbscm_initialize_pspaces (void)
 
void gdbscm_initialize_smobs (void)
 
void gdbscm_initialize_strings (void)
 
void gdbscm_initialize_symbols (void)
 
void gdbscm_initialize_symtabs (void)
 
void gdbscm_initialize_types (void)
 
void gdbscm_initialize_values (void)
 
gdbscm_gdb_exception unpack (const gdb_exception &exc)
 
template<typename Function , typename... Args>
SCM gdbscm_wrap (Function &&func, Args &&... args)
 

Variables

const char gdbscm_module_name []
 
const char gdbscm_init_module_name []
 
int gdb_scheme_initialized
 
int gdbscm_guile_major_version
 
int gdbscm_guile_minor_version
 
int gdbscm_guile_micro_version
 
const char gdbscm_print_excp_none []
 
const char gdbscm_print_excp_full []
 
const char gdbscm_print_excp_message []
 
const char * gdbscm_print_excp
 
SCM gdbscm_documentation_symbol
 
SCM gdbscm_invalid_object_error_symbol
 
SCM gdbscm_map_string
 
SCM gdbscm_array_string
 
SCM gdbscm_string_string
 
excp_matcher_func gdbscm_memory_error_p
 
excp_matcher_func gdbscm_user_error_p
 
objfile_script_sourcer_func gdbscm_source_objfile_script
 
objfile_script_executor_func gdbscm_execute_objfile_script
 

Macro Definition Documentation

◆ END_FUNCTIONS

#define END_FUNCTIONS   { NULL, 0, 0, 0, NULL, NULL }

Definition at line 105 of file guile-internal.h.

◆ END_INTEGER_CONSTANTS

#define END_INTEGER_CONSTANTS   { NULL, 0 }

Definition at line 115 of file guile-internal.h.

◆ END_VARIABLES

#define END_VARIABLES   { NULL, SCM_BOOL_F, NULL }

Definition at line 53 of file guile-internal.h.

◆ FUNC_NAME

#define FUNC_NAME   __func__

Definition at line 155 of file guile-internal.h.

◆ GDB_SMOB_HEAD

#define GDB_SMOB_HEAD    int empty_base_class;

Definition at line 240 of file guile-internal.h.

◆ GDBSCM_ARG_NONE

#define GDBSCM_ARG_NONE   0

Definition at line 119 of file guile-internal.h.

◆ GDBSCM_HANDLE_GDB_EXCEPTION

#define GDBSCM_HANDLE_GDB_EXCEPTION (   exception)
Value:
do { \
if (exception.reason < 0) \
{ \
gdbscm_throw_gdb_exception (exception); \
/*NOTREACHED */ \
} \
} while (0)

Definition at line 678 of file guile-internal.h.

◆ gdbscm_is_bool

#define gdbscm_is_bool (   scm)     (scm_is_eq ((scm), SCM_BOOL_F) || scm_is_eq ((scm), SCM_BOOL_T))

Definition at line 133 of file guile-internal.h.

◆ gdbscm_is_false

#define gdbscm_is_false (   scm)    scm_is_eq ((scm), SCM_BOOL_F)

Definition at line 135 of file guile-internal.h.

◆ gdbscm_is_true

#define gdbscm_is_true (   scm)    (!gdbscm_is_false (scm))

Definition at line 136 of file guile-internal.h.

◆ scm_is_bool

#define scm_is_bool   USE_gdbscm_is_bool_INSTEAD

Definition at line 130 of file guile-internal.h.

◆ scm_is_false

#define scm_is_false   USE_gdbscm_is_false_INSTEAD

Definition at line 131 of file guile-internal.h.

◆ scm_is_true

#define scm_is_true   USE_gdbscm_is_true_INSTEAD

Definition at line 132 of file guile-internal.h.

◆ scm_make_smob_type

#define scm_make_smob_type   USE_gdbscm_make_smob_type_INSTEAD

Definition at line 123 of file guile-internal.h.

Typedef Documentation

◆ excp_matcher_func

typedef int excp_matcher_func(SCM key)

Definition at line 40 of file guile-internal.h.

◆ gsmob_pred_func

typedef int() gsmob_pred_func(SCM)

Definition at line 279 of file guile-internal.h.

Function Documentation

◆ arscm_get_arch_smob_arg_unsafe()

arch_smob * arscm_get_arch_smob_arg_unsafe ( SCM  arch_scm,
int  arg_pos,
const char *  func_name 
)

◆ arscm_get_gdbarch()

struct gdbarch * arscm_get_gdbarch ( arch_smob a_smob)

Definition at line 90 of file scm-arch.c.

References arch_smob::gdbarch.

Referenced by gdbscm_arch_disassemble().

◆ arscm_scm_from_arch()

SCM arscm_scm_from_arch ( struct gdbarch gdbarch)

◆ as_a_scm_t_subr() [1/4]

static scm_t_subr as_a_scm_t_subr ( SCM(*)(SCM)  func)
inlinestatic

Definition at line 74 of file guile-internal.h.

References func.

◆ as_a_scm_t_subr() [2/4]

static scm_t_subr as_a_scm_t_subr ( SCM(*)(SCM, SCM)  func)
inlinestatic

Definition at line 80 of file guile-internal.h.

References func.

◆ as_a_scm_t_subr() [3/4]

static scm_t_subr as_a_scm_t_subr ( SCM(*)(SCM, SCM, SCM)  func)
inlinestatic

Definition at line 86 of file guile-internal.h.

References func.

◆ as_a_scm_t_subr() [4/4]

static scm_t_subr as_a_scm_t_subr ( SCM(*)(void)  func)
inlinestatic

Definition at line 68 of file guile-internal.h.

References func.

Referenced by gdbscm_initialize_blocks(), and gdbscm_initialize_types().

◆ bkscm_scm_from_block()

SCM bkscm_scm_from_block ( const struct block block,
struct objfile objfile 
)

◆ bkscm_scm_to_block()

const struct block * bkscm_scm_to_block ( SCM  block_scm,
int  arg_pos,
const char *  func_name,
SCM *  excp 
)

◆ frscm_frame_smob_to_frame()

struct frame_info_ptr frscm_frame_smob_to_frame ( frame_smob f_smob)

◆ frscm_get_frame_smob_arg_unsafe()

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

◆ 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().

◆ gdbscm_apply_val_pretty_printer()

enum ext_lang_rc gdbscm_apply_val_pretty_printer ( const struct extension_language_defn extlang,
struct value val,
struct ui_file stream,
int  recurse,
const struct value_print_options options,
const struct language_defn language 
)

◆ gdbscm_auto_load_enabled()

bool gdbscm_auto_load_enabled ( const struct extension_language_defn extlang)

Definition at line 47 of file scm-auto-load.c.

References auto_load_guile_scripts.

◆ gdbscm_breakpoint_cond_says_stop()

enum ext_lang_bp_stop gdbscm_breakpoint_cond_says_stop ( const struct extension_language_defn extlang,
struct breakpoint b 
)

◆ gdbscm_breakpoint_has_cond()

int gdbscm_breakpoint_has_cond ( const struct extension_language_defn extlang,
struct breakpoint b 
)

◆ gdbscm_call_guile()

SCM gdbscm_call_guile ( SCM(*)(void *)  func,
void *  data,
excp_matcher_func ok_excps 
)

◆ gdbscm_canonicalize_command_name()

char * gdbscm_canonicalize_command_name ( const char *  name,
int  want_trailing_space 
)

Definition at line 583 of file scm-cmd.c.

References FUNC_NAME, and name.

Referenced by gdbscm_make_command(), and gdbscm_make_parameter().

◆ gdbscm_clear_eqable_gsmob_ptr_slot()

void gdbscm_clear_eqable_gsmob_ptr_slot ( htab_t  htab,
eqable_gdb_smob base 
)

◆ gdbscm_create_eqable_gsmob_ptr_map()

htab_t gdbscm_create_eqable_gsmob_ptr_map ( htab_hash  hash_fn,
htab_eq  eq_fn 
)

◆ gdbscm_debug_display()

void 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_end_of_iteration()

SCM gdbscm_end_of_iteration ( void  )

Definition at line 188 of file scm-iterator.c.

References end_of_iteration.

Referenced by gdbscm_block_next_symbol_x(), and gdbscm_type_next_field_x().

◆ gdbscm_enter_repl()

void gdbscm_enter_repl ( void  )

Definition at line 462 of file scm-safe-call.c.

References gdbscm_safe_call_1().

◆ gdbscm_exception_args()

SCM gdbscm_exception_args ( SCM  excp)

◆ gdbscm_exception_key()

SCM gdbscm_exception_key ( SCM  excp)

◆ gdbscm_exception_message_to_string()

gdb::unique_xmalloc_ptr< char > gdbscm_exception_message_to_string ( SCM  exception)

◆ gdbscm_fill_eqable_gsmob_ptr_slot()

void gdbscm_fill_eqable_gsmob_ptr_slot ( eqable_gdb_smob **  slot,
eqable_gdb_smob base 
)

◆ gdbscm_find_eqable_gsmob_ptr_slot()

eqable_gdb_smob ** gdbscm_find_eqable_gsmob_ptr_slot ( htab_t  htab,
eqable_gdb_smob base 
)

◆ 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_init_chained_gsmob()

void gdbscm_init_chained_gsmob ( chained_gdb_smob base)

Definition at line 150 of file scm-gsmob.c.

References gdbscm_init_gsmob(), chained_gdb_smob::next, and chained_gdb_smob::prev.

◆ gdbscm_init_eqable_gsmob()

void gdbscm_init_eqable_gsmob ( eqable_gdb_smob base,
SCM  containing_scm 
)

◆ gdbscm_init_gsmob()

void gdbscm_init_gsmob ( gdb_smob base)

◆ gdbscm_initialize_arches()

void gdbscm_initialize_arches ( void  )

◆ gdbscm_initialize_auto_load()

void gdbscm_initialize_auto_load ( void  )

◆ gdbscm_initialize_blocks()

void gdbscm_initialize_blocks ( void  )

◆ gdbscm_initialize_breakpoints()

void gdbscm_initialize_breakpoints ( void  )

◆ gdbscm_initialize_commands()

void gdbscm_initialize_commands ( void  )

◆ gdbscm_initialize_disasm()

void gdbscm_initialize_disasm ( void  )

◆ gdbscm_initialize_exceptions()

void gdbscm_initialize_exceptions ( void  )

◆ gdbscm_initialize_frames()

void gdbscm_initialize_frames ( void  )

◆ gdbscm_initialize_iterators()

void gdbscm_initialize_iterators ( void  )

◆ gdbscm_initialize_lazy_strings()

void gdbscm_initialize_lazy_strings ( void  )

◆ gdbscm_initialize_math()

void gdbscm_initialize_math ( void  )

Definition at line 970 of file scm-math.c.

References gdbscm_define_functions(), and math_functions.

◆ gdbscm_initialize_objfiles()

void gdbscm_initialize_objfiles ( void  )

◆ gdbscm_initialize_parameters()

void gdbscm_initialize_parameters ( void  )

◆ gdbscm_initialize_ports()

void gdbscm_initialize_ports ( void  )

◆ gdbscm_initialize_pretty_printers()

void gdbscm_initialize_pretty_printers ( void  )

◆ gdbscm_initialize_pspaces()

void gdbscm_initialize_pspaces ( void  )

◆ gdbscm_initialize_smobs()

void gdbscm_initialize_smobs ( void  )

◆ gdbscm_initialize_strings()

void gdbscm_initialize_strings ( void  )

Definition at line 273 of file scm-string.c.

References gdbscm_define_functions(), and string_functions.

◆ gdbscm_initialize_symbols()

void gdbscm_initialize_symbols ( void  )

◆ gdbscm_initialize_symtabs()

void gdbscm_initialize_symtabs ( void  )

◆ gdbscm_initialize_types()

void gdbscm_initialize_types ( void  )

◆ gdbscm_initialize_values()

void gdbscm_initialize_values ( void  )

◆ gdbscm_invalid_object_error()

void gdbscm_invalid_object_error ( const char *  subr,
int  arg_pos,
SCM  bad_value,
const char *  error 
)

◆ gdbscm_is_exception()

int gdbscm_is_exception ( SCM  scm)

◆ gdbscm_is_procedure()

int gdbscm_is_procedure ( SCM  proc)

◆ gdbscm_make_error()

SCM gdbscm_make_error ( SCM  key,
const char *  subr,
const char *  message,
SCM  args,
SCM  data 
)

◆ gdbscm_make_error_scm()

SCM gdbscm_make_error_scm ( SCM  key,
SCM  subr,
SCM  message,
SCM  args,
SCM  data 
)

Definition at line 210 of file scm-exception.c.

References gdbscm_make_exception().

Referenced by gdbscm_make_error().

◆ gdbscm_make_exception()

SCM gdbscm_make_exception ( SCM  tag,
SCM  args 
)

◆ gdbscm_make_exception_with_stack()

SCM gdbscm_make_exception_with_stack ( SCM  key,
SCM  args,
SCM  stack 
)

Definition at line 192 of file scm-exception.c.

References gdbscm_make_exception(), and with_stack_error_symbol.

Referenced by scscm_recording_unwind_handler().

◆ gdbscm_make_invalid_object_error()

SCM gdbscm_make_invalid_object_error ( const char *  subr,
int  arg_pos,
SCM  bad_value,
const char *  error 
)

◆ gdbscm_make_iterator()

SCM gdbscm_make_iterator ( SCM  object,
SCM  progress,
SCM  next 
)

◆ gdbscm_make_memory_error()

SCM gdbscm_make_memory_error ( const char *  subr,
const char *  msg,
SCM  args 
)

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

References gdbscm_make_error(), and memory_error_symbol.

Referenced by gdbscm_memory_error().

◆ gdbscm_make_misc_error()

SCM gdbscm_make_misc_error ( const char *  subr,
int  arg_pos,
SCM  bad_value,
const char *  error 
)

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

References gdbscm_make_arg_error().

Referenced by gdbscm_misc_error(), and vlscm_convert_typed_value_from_scheme().

◆ gdbscm_make_out_of_range_error()

SCM gdbscm_make_out_of_range_error ( const char *  subr,
int  arg_pos,
SCM  bad_value,
const char *  error 
)

◆ gdbscm_make_smob_type()

scm_t_bits gdbscm_make_smob_type ( const char *  name,
size_t  size 
)

◆ gdbscm_make_type_error()

SCM gdbscm_make_type_error ( const char *  subr,
int  arg_pos,
SCM  bad_value,
const char *  expected_type 
)

◆ gdbscm_memory_error()

void gdbscm_memory_error ( const char *  subr,
const char *  msg,
SCM  args 
)

◆ gdbscm_misc_error()

void gdbscm_misc_error ( const char *  subr,
int  arg_pos,
SCM  bad_value,
const char *  error 
)

◆ gdbscm_out_of_range_error()

void gdbscm_out_of_range_error ( const char *  subr,
int  arg_pos,
SCM  bad_value,
const char *  error 
)

◆ gdbscm_parse_command_name()

char * gdbscm_parse_command_name ( const char *  name,
const char *  func_name,
int  arg_pos,
struct cmd_list_element ***  base_list,
struct cmd_list_element **  start_list 
)

◆ gdbscm_parse_function_args()

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

◆ gdbscm_preserve_values()

void gdbscm_preserve_values ( const struct extension_language_defn extlang,
struct objfile objfile,
htab_t  copied_types 
)

◆ gdbscm_print_exception_with_stack()

void gdbscm_print_exception_with_stack ( SCM  port,
SCM  stack,
SCM  key,
SCM  args 
)

◆ gdbscm_print_gdb_exception()

void gdbscm_print_gdb_exception ( SCM  port,
SCM  exception 
)

◆ gdbscm_printf()

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

◆ gdbscm_safe_apply_1()

SCM gdbscm_safe_apply_1 ( SCM  proc,
SCM  arg0,
SCM  args,
excp_matcher_func ok_excps 
)

Definition at line 332 of file scm-safe-call.c.

References gdbscm_call_guile(), and scscm_apply_1_body().

◆ gdbscm_safe_call_0()

SCM gdbscm_safe_call_0 ( SCM  proc,
excp_matcher_func ok_excps 
)

Definition at line 240 of file scm-safe-call.c.

References gdbscm_call_guile(), and scscm_call_0_body().

Referenced by ioscm_with_output_to_port_worker().

◆ gdbscm_safe_call_1()

SCM gdbscm_safe_call_1 ( SCM  proc,
SCM  arg0,
excp_matcher_func ok_excps 
)

◆ gdbscm_safe_call_2()

SCM gdbscm_safe_call_2 ( SCM  proc,
SCM  arg0,
SCM  arg1,
excp_matcher_func ok_excps 
)

Definition at line 276 of file scm-safe-call.c.

References gdbscm_call_guile(), and scscm_call_2_body().

Referenced by pascm_show_func(), and ppscm_search_pp_list().

◆ gdbscm_safe_call_3()

SCM gdbscm_safe_call_3 ( SCM  proc,
SCM  arg0,
SCM  arg1,
SCM  arg2,
excp_matcher_func ok_excps 
)

Definition at line 294 of file scm-safe-call.c.

References gdbscm_call_guile(), and scscm_call_3_body().

Referenced by cmdscm_completer(), and cmdscm_function().

◆ gdbscm_safe_call_4()

SCM gdbscm_safe_call_4 ( SCM  proc,
SCM  arg0,
SCM  arg1,
SCM  arg2,
SCM  arg3,
excp_matcher_func ok_excps 
)

◆ gdbscm_safe_eval_string()

gdb::unique_xmalloc_ptr< char > gdbscm_safe_eval_string ( const char *  string,
int  display_result 
)

◆ gdbscm_safe_source_script()

gdb::unique_xmalloc_ptr< char > gdbscm_safe_source_script ( const char *  filename)

Definition at line 435 of file scm-safe-call.c.

References gdbscm_with_guile(), and scscm_source_scheme_script().

Referenced by gdbscm_source_objfile_script().

◆ gdbscm_scm_from_c_string()

SCM gdbscm_scm_from_c_string ( const char *  string)

◆ gdbscm_scm_from_gdb_exception()

SCM gdbscm_scm_from_gdb_exception ( const gdbscm_gdb_exception exception)

◆ gdbscm_scm_from_host_string()

SCM gdbscm_scm_from_host_string ( const char *  string,
size_t  len 
)

◆ gdbscm_scm_from_longest()

SCM gdbscm_scm_from_longest ( LONGEST  l)

◆ gdbscm_scm_from_printf()

SCM gdbscm_scm_from_printf ( const char *  format,
  ... 
)

◆ gdbscm_scm_from_string()

SCM gdbscm_scm_from_string ( const char *  string,
size_t  len,
const char *  charset,
int  strict 
)

◆ gdbscm_scm_from_ulongest()

SCM gdbscm_scm_from_ulongest ( ULONGEST  l)

◆ gdbscm_scm_string_to_int()

int gdbscm_scm_string_to_int ( SCM  string)

Definition at line 32 of file scm-string.c.

◆ gdbscm_scm_to_c_string()

gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_c_string ( SCM  string)

◆ gdbscm_scm_to_host_string()

gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_host_string ( SCM  string,
size_t *  lenp,
SCM *  except 
)

◆ 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_string()

SCM gdb::unique_xmalloc_ptr< char > gdbscm_scm_to_string ( SCM  string,
size_t *  lenp,
const char *  charset,
int  strict,
SCM *  except_scmp 
)

◆ 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().

◆ gdbscm_throw()

void gdbscm_throw ( SCM  exception)

◆ gdbscm_throw_gdb_exception()

void gdbscm_throw_gdb_exception ( gdbscm_gdb_exception  exception)

◆ gdbscm_unsafe_call_1()

SCM gdbscm_unsafe_call_1 ( SCM  proc,
SCM  arg0 
)

Definition at line 357 of file scm-safe-call.c.

◆ gdbscm_valid_command_class_p()

int gdbscm_valid_command_class_p ( int  command_class)

Definition at line 561 of file scm-cmd.c.

References command_classes, and scheme_integer_constant::name.

Referenced by gdbscm_make_command(), and gdbscm_make_parameter().

◆ gdbscm_with_guile()

const char * gdbscm_with_guile ( const char *(*)(void *)  func,
void *  data 
)

◆ gdbscm_wrap()

template<typename Function , typename... Args>
SCM gdbscm_wrap ( Function &&  func,
Args &&...  args 
)

◆ itscm_get_iterator_arg_unsafe()

SCM itscm_get_iterator_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)

◆ itscm_is_end_of_iteration()

int itscm_is_end_of_iteration ( SCM  obj)

Definition at line 196 of file scm-iterator.c.

References end_of_iteration.

Referenced by gdbscm_end_of_iteration_p(), and ppscm_print_children().

◆ itscm_is_iterator()

int itscm_is_iterator ( SCM  scm)

◆ itscm_iterator_smob_name()

const char * itscm_iterator_smob_name ( void  )

Definition at line 87 of file scm-iterator.c.

References iterator_smob_name.

◆ itscm_iterator_smob_object()

SCM itscm_iterator_smob_object ( iterator_smob i_smob)

Definition at line 93 of file scm-iterator.c.

References iterator_smob::object.

Referenced by gdbscm_block_next_symbol_x(), and gdbscm_type_next_field_x().

◆ itscm_iterator_smob_progress()

SCM itscm_iterator_smob_progress ( iterator_smob i_smob)

Definition at line 99 of file scm-iterator.c.

References iterator_smob::progress.

Referenced by gdbscm_block_next_symbol_x(), and gdbscm_type_next_field_x().

◆ itscm_safe_call_next_x()

SCM itscm_safe_call_next_x ( SCM  iter,
excp_matcher_func ok_excps 
)

◆ itscm_set_iterator_smob_progress_x()

void itscm_set_iterator_smob_progress_x ( iterator_smob i_smob,
SCM  progress 
)

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

References iterator_smob::progress.

Referenced by gdbscm_type_next_field_x().

◆ lsscm_is_lazy_string()

int lsscm_is_lazy_string ( SCM  scm)

◆ lsscm_make_lazy_string()

SCM lsscm_make_lazy_string ( CORE_ADDR  address,
int  length,
const char *  encoding,
struct type type 
)

◆ lsscm_safe_lazy_string_to_value()

struct value * lsscm_safe_lazy_string_to_value ( SCM  string,
int  arg_pos,
const char *  func_name,
SCM *  except_scmp 
)

◆ lsscm_val_print_lazy_string()

void lsscm_val_print_lazy_string ( SCM  string,
struct ui_file stream,
const struct value_print_options options 
)

◆ ofscm_objfile_smob_from_objfile()

objfile_smob * ofscm_objfile_smob_from_objfile ( struct objfile objfile)

◆ ofscm_objfile_smob_pretty_printers()

SCM ofscm_objfile_smob_pretty_printers ( objfile_smob o_smob)

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

References objfile_smob::pretty_printers.

Referenced by ppscm_find_pretty_printer_from_objfiles().

◆ ofscm_scm_from_objfile()

SCM ofscm_scm_from_objfile ( struct objfile objfile)

◆ psscm_pspace_smob_from_pspace()

pspace_smob * psscm_pspace_smob_from_pspace ( struct program_space pspace)

◆ psscm_pspace_smob_pretty_printers()

SCM psscm_pspace_smob_pretty_printers ( const pspace_smob p_smob)

Definition at line 71 of file scm-progspace.c.

References pspace_smob::pretty_printers.

Referenced by ppscm_find_pretty_printer_from_progspace().

◆ psscm_scm_from_pspace()

SCM psscm_scm_from_pspace ( struct program_space pspace)

◆ scm_new_smob()

static SCM scm_new_smob ( scm_t_bits  tc,
scm_t_bits  data 
)
inlinestatic

◆ stscm_scm_from_sal()

SCM stscm_scm_from_sal ( struct symtab_and_line  sal)

◆ stscm_scm_from_symtab()

SCM stscm_scm_from_symtab ( struct symtab symtab)

◆ syscm_get_valid_symbol_arg_unsafe()

struct symbol * syscm_get_valid_symbol_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)

Definition at line 308 of file scm-symbol.c.

References symbol_smob::symbol, and syscm_get_valid_symbol_smob_arg_unsafe().

Referenced by gdbscm_frame_read_var().

◆ syscm_is_symbol()

int syscm_is_symbol ( SCM  scm)

Definition at line 213 of file scm-symbol.c.

References symbol_smob_tag.

Referenced by gdbscm_frame_read_var(), gdbscm_symbol_p(), and syscm_get_symbol_arg_unsafe().

◆ syscm_scm_from_symbol()

SCM syscm_scm_from_symbol ( struct symbol symbol)

◆ tyscm_get_type_smob_arg_unsafe()

type_smob * tyscm_get_type_smob_arg_unsafe ( SCM  type_scm,
int  arg_pos,
const char *  func_name 
)

◆ tyscm_is_type()

int tyscm_is_type ( SCM  scm)

◆ tyscm_scm_from_field()

SCM tyscm_scm_from_field ( SCM  type_scm,
int  field_num 
)

Definition at line 459 of file scm-type.c.

References tyscm_make_field_smob().

◆ tyscm_scm_from_type()

SCM tyscm_scm_from_type ( struct type type)

◆ tyscm_scm_to_type()

struct type * tyscm_scm_to_type ( SCM  t_scm)

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

References type_smob::type, and tyscm_is_type().

Referenced by lsscm_elt_type(), and lsscm_safe_lazy_string_to_value().

◆ tyscm_type_smob_type()

struct type * tyscm_type_smob_type ( type_smob t_smob)

Definition at line 115 of file scm-type.c.

References type_smob::type.

Referenced by gdbscm_make_lazy_value(), gdbscm_make_value(), and vlscm_do_cast().

◆ unpack()

gdbscm_gdb_exception unpack ( const gdb_exception &  exc)
inline

Definition at line 661 of file guile-internal.h.

References gdbscm_gdb_exception::error, gdbscm_gdb_exception::message, and gdbscm_gdb_exception::reason.

Referenced by gdbscm_arch_disassemble(), gdbscm_breakpoint_commands(), gdbscm_delete_breakpoint_x(), gdbscm_find_pc_line(), gdbscm_frame_arch(), gdbscm_frame_block(), gdbscm_frame_function(), gdbscm_frame_name(), gdbscm_frame_newer(), gdbscm_frame_older(), gdbscm_frame_pc(), gdbscm_frame_read_register(), gdbscm_frame_read_var(), gdbscm_frame_sal(), gdbscm_frame_select(), gdbscm_frame_type(), gdbscm_frame_unwind_stop_reason(), gdbscm_frame_valid_p(), gdbscm_lookup_block(), gdbscm_lookup_global_symbol(), gdbscm_lookup_symbol(), gdbscm_newest_frame(), gdbscm_parameter_value(), gdbscm_register_breakpoint_x(), gdbscm_register_command_x(), gdbscm_register_parameter_x(), gdbscm_selected_frame(), gdbscm_set_breakpoint_enabled_x(), gdbscm_set_breakpoint_ignore_count_x(), gdbscm_set_breakpoint_silent_x(), gdbscm_set_breakpoint_task_x(), gdbscm_symbol_needs_frame_p(), gdbscm_symbol_value(), gdbscm_type_const(), gdbscm_type_pointer(), gdbscm_type_reference(), gdbscm_type_strip_typedefs(), gdbscm_type_unqualified(), gdbscm_type_volatile(), gdbscm_value_call(), gdbscm_value_dynamic_type(), gdbscm_value_print(), gdbscm_value_to_bool(), gdbscm_value_to_bytevector(), gdbscm_value_to_integer(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), gdbscm_value_to_string(), gdbscm_wrap(), ioscm_write(), lsscm_safe_lazy_string_to_value(), tyscm_array_1(), tyscm_equal_p_type_smob(), tyscm_get_composite(), tyscm_type_name(), vlscm_convert_typed_value_from_scheme(), vlscm_equal_p_value_smob(), and vlscm_print_value_smob().

◆ vlscm_convert_typed_value_from_scheme()

struct value * vlscm_convert_typed_value_from_scheme ( const char *  func_name,
int  obj_arg_pos,
SCM  obj,
int  type_arg_pos,
SCM  type_scm,
struct type type,
SCM *  except_scmp,
struct gdbarch gdbarch,
const struct language_defn language 
)

◆ vlscm_convert_value_from_scheme()

struct value * vlscm_convert_value_from_scheme ( const char *  func_name,
int  obj_arg_pos,
SCM  obj,
SCM *  except_scmp,
struct gdbarch gdbarch,
const struct language_defn language 
)

◆ vlscm_is_value()

int vlscm_is_value ( SCM  scm)

◆ vlscm_scm_from_value()

SCM vlscm_scm_from_value ( struct value value)

◆ vlscm_scm_from_value_no_release()

SCM vlscm_scm_from_value_no_release ( struct value value)

◆ vlscm_scm_to_value()

struct value * vlscm_scm_to_value ( SCM  scm)

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

References value_smob::value, and vlscm_is_value().

Referenced by vlscm_convert_typed_value_from_scheme().

Variable Documentation

◆ gdb_scheme_initialized

int gdb_scheme_initialized
extern

◆ gdbscm_array_string

SCM gdbscm_array_string
extern

◆ gdbscm_documentation_symbol

SCM gdbscm_documentation_symbol
extern

◆ gdbscm_execute_objfile_script

objfile_script_executor_func gdbscm_execute_objfile_script
extern

◆ gdbscm_guile_major_version

int gdbscm_guile_major_version
extern

Definition at line 46 of file guile.c.

Referenced by gdbscm_guile_version_is_at_least().

◆ gdbscm_guile_micro_version

int gdbscm_guile_micro_version
extern

Definition at line 48 of file guile.c.

Referenced by gdbscm_guile_version_is_at_least().

◆ gdbscm_guile_minor_version

int gdbscm_guile_minor_version
extern

Definition at line 47 of file guile.c.

Referenced by gdbscm_guile_version_is_at_least().

◆ gdbscm_init_module_name

const char gdbscm_init_module_name[]
extern

◆ gdbscm_invalid_object_error_symbol

SCM gdbscm_invalid_object_error_symbol
extern

◆ gdbscm_map_string

SCM gdbscm_map_string
extern

◆ gdbscm_memory_error_p

excp_matcher_func gdbscm_memory_error_p
extern

◆ gdbscm_module_name

const char gdbscm_module_name[]
extern

◆ gdbscm_print_excp

const char* gdbscm_print_excp
extern

Definition at line 73 of file guile.c.

Referenced by gdbscm_percent_exception_print_style(), and install_gdb_commands().

◆ gdbscm_print_excp_full

const char gdbscm_print_excp_full[]
extern

Definition at line 57 of file guile.c.

Referenced by gdbscm_percent_exception_print_style().

◆ gdbscm_print_excp_message

const char gdbscm_print_excp_message[]
extern

Definition at line 58 of file guile.c.

Referenced by gdbscm_percent_exception_print_style().

◆ gdbscm_print_excp_none

const char gdbscm_print_excp_none[]
extern

Definition at line 56 of file guile.c.

Referenced by gdbscm_percent_exception_print_style().

◆ gdbscm_source_objfile_script

objfile_script_sourcer_func gdbscm_source_objfile_script
extern

◆ gdbscm_string_string

SCM gdbscm_string_string
extern

◆ gdbscm_user_error_p

excp_matcher_func gdbscm_user_error_p
extern