GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions
scm-safe-call.c File Reference
#include "defs.h"
#include "filenames.h"
#include "guile-internal.h"
#include "gdbsupport/pathstuff.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)
 
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)
 
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 const char * scscm_eval_scheme_string (void *datap)
 
gdb::unique_xmalloc_ptr< char > gdbscm_safe_eval_string (const char *string, int display_result)
 
static const char * scscm_source_scheme_script (void *data)
 
gdb::unique_xmalloc_ptr< char > gdbscm_safe_source_script (const char *filename)
 
void gdbscm_enter_repl (void)
 

Function Documentation

◆ gdbscm_call_guile()

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

◆ gdbscm_enter_repl()

void gdbscm_enter_repl ( void )

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

References gdbscm_safe_call_1().

◆ gdbscm_safe_apply_1()

SCM gdbscm_safe_apply_1 ( SCM proc,
SCM arg0,
SCM rest,
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 arg1,
SCM arg2,
SCM arg3,
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 arg1,
SCM arg2,
SCM arg3,
SCM arg4,
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_unsafe_call_1()

SCM gdbscm_unsafe_call_1 ( SCM proc,
SCM arg0 )

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

◆ gdbscm_with_catch()

static void * gdbscm_with_catch ( void * data)
static

◆ gdbscm_with_guile()

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

◆ scscm_apply_1_body()

static SCM scscm_apply_1_body ( void * argsp)
static

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

Referenced by gdbscm_safe_apply_1().

◆ scscm_call_0_body()

static SCM scscm_call_0_body ( void * argsp)
static

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

Referenced by gdbscm_safe_call_0().

◆ scscm_call_1_body()

static SCM scscm_call_1_body ( void * argsp)
static

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

Referenced by gdbscm_safe_call_1().

◆ scscm_call_2_body()

static SCM scscm_call_2_body ( void * argsp)
static

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

Referenced by gdbscm_safe_call_2().

◆ scscm_call_3_body()

static SCM scscm_call_3_body ( void * argsp)
static

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

Referenced by gdbscm_safe_call_3().

◆ scscm_call_4_body()

static SCM scscm_call_4_body ( void * argsp)
static

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

Referenced by gdbscm_safe_call_4().

◆ scscm_eval_scheme_string()

static const char * scscm_eval_scheme_string ( void * datap)
static

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

Referenced by gdbscm_safe_eval_string().

◆ scscm_nop_unwind_handler()

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

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

Referenced by gdbscm_with_guile().

◆ scscm_printing_pre_unwind_handler()

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

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

References gdbscm_print_exception_with_stack().

Referenced by gdbscm_with_guile().

◆ scscm_recording_pre_unwind_handler()

static SCM scscm_recording_pre_unwind_handler ( void * datap,
SCM key,
SCM args )
static

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

References with_catch_data::data, and with_catch_data::excp_matcher.

Referenced by gdbscm_call_guile().

◆ scscm_recording_unwind_handler()

static SCM scscm_recording_unwind_handler ( void * datap,
SCM key,
SCM args )
static

◆ scscm_safe_call_body()

static SCM scscm_safe_call_body ( void * d)
static

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

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

Referenced by gdbscm_with_guile().

◆ scscm_source_scheme_script()

static const char * scscm_source_scheme_script ( void * data)
static

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

Referenced by gdbscm_safe_source_script().