GDB (xrefs)
Classes | Functions
scm-safe-call.c File Reference
#include "defs.h"
#include "filenames.h"
#include "guile-internal.h"

Go to the source code of this file.

Classes

struct  c_data
 
struct  with_catch_data
 
struct  eval_scheme_string_data
 

Functions

static SCM scscm_safe_call_body (void *d)
 
static SCM scscm_printing_pre_unwind_handler (void *data, SCM key, SCM args)
 
static SCM scscm_nop_unwind_handler (void *data, SCM key, SCM args)
 
static SCM scscm_recording_pre_unwind_handler (void *datap, SCM key, SCM args)
 
static SCM scscm_recording_unwind_handler (void *datap, SCM key, SCM args)
 
static void * gdbscm_with_catch (void *data)
 
void * gdbscm_with_guile (void *(*func)(void *), void *data)
 
SCM gdbscm_call_guile (SCM(*func)(void *), void *data, excp_matcher_func *ok_excps)
 
static SCM scscm_call_0_body (void *argsp)
 
SCM gdbscm_safe_call_0 (SCM proc, excp_matcher_func *ok_excps)
 
static SCM scscm_call_1_body (void *argsp)
 
SCM gdbscm_safe_call_1 (SCM proc, SCM arg0, excp_matcher_func *ok_excps)
 
static SCM scscm_call_2_body (void *argsp)
 
SCM gdbscm_safe_call_2 (SCM proc, SCM arg0, SCM arg1, excp_matcher_func *ok_excps)
 
static SCM scscm_call_3_body (void *argsp)
 
SCM gdbscm_safe_call_3 (SCM proc, SCM arg1, SCM arg2, SCM arg3, excp_matcher_func *ok_excps)
 
static SCM scscm_call_4_body (void *argsp)
 
SCM gdbscm_safe_call_4 (SCM proc, SCM arg1, SCM arg2, SCM arg3, SCM arg4, excp_matcher_func *ok_excps)
 
static SCM scscm_apply_1_body (void *argsp)
 
SCM gdbscm_safe_apply_1 (SCM proc, SCM arg0, SCM rest, excp_matcher_func *ok_excps)
 
SCM gdbscm_unsafe_call_1 (SCM proc, SCM arg0)
 
static void * scscm_eval_scheme_string (void *datap)
 
char * gdbscm_safe_eval_string (const char *string, int display_result)
 
static void * scscm_source_scheme_script (void *data)
 
char * gdbscm_safe_source_script (const char *filename)
 
void gdbscm_enter_repl (void)
 

Function Documentation

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

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

References gdbscm_safe_call_1().

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

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

References gdbscm_call_guile(), and scscm_apply_1_body().

SCM gdbscm_safe_call_0 ( SCM  proc,
excp_matcher_func ok_excps 
)

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

References gdbscm_call_guile(), and scscm_call_0_body().

Referenced by ioscm_with_output_to_port_worker().

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 
)

Definition at line 275 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().

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

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

References gdbscm_call_guile(), and scscm_call_3_body().

Referenced by cmdscm_function(), and VEC().

SCM gdbscm_safe_call_4 ( SCM  proc,
SCM  arg1,
SCM  arg2,
SCM  arg3,
SCM  arg4,
excp_matcher_func ok_excps 
)
char* gdbscm_safe_eval_string ( const char *  string,
int  display_result 
)

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

References gdbscm_with_guile(), scscm_eval_scheme_string(), and string.

Referenced by gdbscm_execute_objfile_script().

char* gdbscm_safe_source_script ( const char *  filename)
SCM gdbscm_unsafe_call_1 ( SCM  proc,
SCM  arg0 
)

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

static void* gdbscm_with_catch ( void *  data)
static
void* gdbscm_with_guile ( void *(*)(void *)  func,
void *  data 
)
static SCM scscm_apply_1_body ( void *  argsp)
static

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

Referenced by gdbscm_safe_apply_1().

static SCM scscm_call_0_body ( void *  argsp)
static

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

Referenced by gdbscm_safe_call_0().

static SCM scscm_call_1_body ( void *  argsp)
static

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

Referenced by gdbscm_safe_call_1().

static SCM scscm_call_2_body ( void *  argsp)
static

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

Referenced by gdbscm_safe_call_2().

static SCM scscm_call_3_body ( void *  argsp)
static

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

Referenced by gdbscm_safe_call_3().

static SCM scscm_call_4_body ( void *  argsp)
static

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

Referenced by gdbscm_safe_call_4().

static void* scscm_eval_scheme_string ( void *  datap)
static
static SCM scscm_nop_unwind_handler ( void *  data,
SCM  key,
SCM  args 
)
static

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

Referenced by gdbscm_with_guile().

static SCM scscm_printing_pre_unwind_handler ( void *  data,
SCM  key,
SCM  args 
)
static

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

References gdbscm_print_exception_with_stack().

Referenced by gdbscm_with_guile().

static SCM scscm_recording_pre_unwind_handler ( void *  datap,
SCM  key,
SCM  args 
)
static
static SCM scscm_recording_unwind_handler ( void *  datap,
SCM  key,
SCM  args 
)
static
static SCM scscm_safe_call_body ( void *  d)
static

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

References c_data::data, c_data::func, and c_data::result.

Referenced by gdbscm_with_guile().

static void* scscm_source_scheme_script ( void *  data)
static

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

Referenced by gdbscm_safe_source_script().