GDB (xrefs)
Classes | Typedefs | Functions | Variables
scm-breakpoint.c File Reference
#include "defs.h"
#include "value.h"
#include "breakpoint.h"
#include "gdbcmd.h"
#include "gdbthread.h"
#include "observer.h"
#include "cli/cli-script.h"
#include "ada-lang.h"
#include "arch-utils.h"
#include "language.h"
#include "guile-internal.h"

Go to the source code of this file.

Classes

struct  gdbscm_breakpoint_object
 

Typedefs

typedef struct gdbscm_breakpoint_object breakpoint_smob
 

Functions

static size_t bpscm_free_breakpoint_smob (SCM self)
 
static const char * bpscm_type_to_string (enum bptype type)
 
static const char * bpscm_enable_state_to_string (enum enable_state enable_state)
 
static int bpscm_print_breakpoint_smob (SCM self, SCM port, scm_print_state *pstate)
 
static SCM bpscm_make_breakpoint_smob (void)
 
static int bpscm_want_scm_wrapper_p (struct breakpoint *bp, int from_scheme)
 
static void bpscm_attach_scm_to_breakpoint (struct breakpoint *bp, SCM containing_scm)
 
static int bpscm_is_breakpoint (SCM scm)
 
static SCM gdbscm_breakpoint_p (SCM scm)
 
static SCM bpscm_get_breakpoint_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static breakpoint_smobbpscm_get_breakpoint_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static int bpscm_is_valid (breakpoint_smob *bp_smob)
 
static breakpoint_smobbpscm_get_valid_breakpoint_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static SCM gdbscm_make_breakpoint (SCM location_scm, SCM rest)
 
static SCM gdbscm_register_breakpoint_x (SCM self)
 
static SCM gdbscm_delete_breakpoint_x (SCM self)
 
static int bpscm_build_bp_list (struct breakpoint *bp, void *arg)
 
static SCM gdbscm_breakpoints (void)
 
static SCM gdbscm_breakpoint_valid_p (SCM self)
 
static SCM gdbscm_breakpoint_enabled_p (SCM self)
 
static SCM gdbscm_set_breakpoint_enabled_x (SCM self, SCM newvalue)
 
static SCM gdbscm_breakpoint_silent_p (SCM self)
 
static SCM gdbscm_set_breakpoint_silent_x (SCM self, SCM newvalue)
 
static SCM gdbscm_breakpoint_ignore_count (SCM self)
 
static SCM gdbscm_set_breakpoint_ignore_count_x (SCM self, SCM newvalue)
 
static SCM gdbscm_breakpoint_hit_count (SCM self)
 
static SCM gdbscm_set_breakpoint_hit_count_x (SCM self, SCM newvalue)
 
static SCM gdbscm_breakpoint_thread (SCM self)
 
static SCM gdbscm_set_breakpoint_thread_x (SCM self, SCM newvalue)
 
static SCM gdbscm_breakpoint_task (SCM self)
 
static SCM gdbscm_set_breakpoint_task_x (SCM self, SCM newvalue)
 
static SCM gdbscm_breakpoint_location (SCM self)
 
static SCM gdbscm_breakpoint_expression (SCM self)
 
static SCM gdbscm_breakpoint_condition (SCM self)
 
static SCM gdbscm_set_breakpoint_condition_x (SCM self, SCM newvalue)
 
static SCM gdbscm_breakpoint_stop (SCM self)
 
static SCM gdbscm_set_breakpoint_stop_x (SCM self, SCM newvalue)
 
static SCM gdbscm_breakpoint_commands (SCM self)
 
static SCM gdbscm_breakpoint_type (SCM self)
 
static SCM gdbscm_breakpoint_visible (SCM self)
 
static SCM gdbscm_breakpoint_number (SCM self)
 
int gdbscm_breakpoint_has_cond (const struct extension_language_defn *extlang, struct breakpoint *b)
 
enum ext_lang_bp_stop gdbscm_breakpoint_cond_says_stop (const struct extension_language_defn *extlang, struct breakpoint *b)
 
static void bpscm_breakpoint_created (struct breakpoint *bp)
 
static void bpscm_breakpoint_deleted (struct breakpoint *b)
 
void gdbscm_initialize_breakpoints (void)
 

Variables

static const char breakpoint_smob_name [] = "gdb:breakpoint"
 
static scm_t_bits breakpoint_smob_tag
 
static SCM pending_breakpoint_scm = SCM_BOOL_F
 
static SCM type_keyword
 
static SCM wp_class_keyword
 
static SCM internal_keyword
 
static const scheme_integer_constant breakpoint_integer_constants []
 
static const scheme_function breakpoint_functions []
 

Typedef Documentation

Function Documentation

static void bpscm_attach_scm_to_breakpoint ( struct breakpoint bp,
SCM  containing_scm 
)
static
static void bpscm_breakpoint_created ( struct breakpoint bp)
static
static void bpscm_breakpoint_deleted ( struct breakpoint b)
static
static int bpscm_build_bp_list ( struct breakpoint bp,
void *  arg 
)
static
static const char* bpscm_enable_state_to_string ( enum enable_state  enable_state)
static

Definition at line 147 of file scm-breakpoint.c.

References bp_call_disabled, bp_disabled, and bp_enabled.

Referenced by bpscm_print_breakpoint_smob().

static size_t bpscm_free_breakpoint_smob ( SCM  self)
static
static SCM bpscm_get_breakpoint_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static

Definition at line 276 of file scm-breakpoint.c.

References bpscm_is_breakpoint(), and breakpoint_smob_name.

Referenced by bpscm_get_breakpoint_smob_arg_unsafe().

static breakpoint_smob* bpscm_get_breakpoint_smob_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static
static breakpoint_smob* bpscm_get_valid_breakpoint_smob_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static
static int bpscm_is_breakpoint ( SCM  scm)
static

Definition at line 259 of file scm-breakpoint.c.

References breakpoint_smob_tag.

Referenced by bpscm_get_breakpoint_arg_unsafe(), and gdbscm_breakpoint_p().

static int bpscm_is_valid ( breakpoint_smob bp_smob)
static
static SCM bpscm_make_breakpoint_smob ( void  )
static
static int bpscm_print_breakpoint_smob ( SCM  self,
SCM  port,
scm_print_state *  pstate 
)
static
static const char* bpscm_type_to_string ( enum bptype  type)
static
static int bpscm_want_scm_wrapper_p ( struct breakpoint bp,
int  from_scheme 
)
static
static SCM gdbscm_breakpoint_commands ( SCM  self)
static
enum ext_lang_bp_stop gdbscm_breakpoint_cond_says_stop ( const struct extension_language_defn extlang,
struct breakpoint b 
)
static SCM gdbscm_breakpoint_condition ( SCM  self)
static
static SCM gdbscm_breakpoint_enabled_p ( SCM  self)
static
static SCM gdbscm_breakpoint_expression ( SCM  self)
static
int gdbscm_breakpoint_has_cond ( const struct extension_language_defn extlang,
struct breakpoint b 
)
static SCM gdbscm_breakpoint_hit_count ( SCM  self)
static
static SCM gdbscm_breakpoint_ignore_count ( SCM  self)
static
static SCM gdbscm_breakpoint_location ( SCM  self)
static
static SCM gdbscm_breakpoint_number ( SCM  self)
static
static SCM gdbscm_breakpoint_p ( SCM  scm)
static

Definition at line 267 of file scm-breakpoint.c.

References bpscm_is_breakpoint().

static SCM gdbscm_breakpoint_silent_p ( SCM  self)
static
static SCM gdbscm_breakpoint_stop ( SCM  self)
static
static SCM gdbscm_breakpoint_task ( SCM  self)
static
static SCM gdbscm_breakpoint_thread ( SCM  self)
static
static SCM gdbscm_breakpoint_type ( SCM  self)
static
static SCM gdbscm_breakpoint_valid_p ( SCM  self)
static
static SCM gdbscm_breakpoint_visible ( SCM  self)
static
static SCM gdbscm_breakpoints ( void  )
static

Definition at line 534 of file scm-breakpoint.c.

References bpscm_build_bp_list(), and iterate_over_breakpoints().

static SCM gdbscm_delete_breakpoint_x ( SCM  self)
static
void gdbscm_initialize_breakpoints ( void  )
static SCM gdbscm_make_breakpoint ( SCM  location_scm,
SCM  rest 
)
static
static SCM gdbscm_register_breakpoint_x ( SCM  self)
static
static SCM gdbscm_set_breakpoint_condition_x ( SCM  self,
SCM  newvalue 
)
static
static SCM gdbscm_set_breakpoint_enabled_x ( SCM  self,
SCM  newvalue 
)
static
static SCM gdbscm_set_breakpoint_hit_count_x ( SCM  self,
SCM  newvalue 
)
static
static SCM gdbscm_set_breakpoint_ignore_count_x ( SCM  self,
SCM  newvalue 
)
static
static SCM gdbscm_set_breakpoint_silent_x ( SCM  self,
SCM  newvalue 
)
static
static SCM gdbscm_set_breakpoint_stop_x ( SCM  self,
SCM  newvalue 
)
static
static SCM gdbscm_set_breakpoint_task_x ( SCM  self,
SCM  newvalue 
)
static
static SCM gdbscm_set_breakpoint_thread_x ( SCM  self,
SCM  newvalue 
)
static

Variable Documentation

const scheme_function breakpoint_functions[]
static

Definition at line 1159 of file scm-breakpoint.c.

const scheme_integer_constant breakpoint_integer_constants[]
static
Initial value:
=
{
{ "BP_NONE", bp_none },
{ "BP_BREAKPOINT", bp_breakpoint },
{ "BP_WATCHPOINT", bp_watchpoint },
{ "BP_HARDWARE_WATCHPOINT", bp_hardware_watchpoint },
{ "BP_READ_WATCHPOINT", bp_read_watchpoint },
{ "BP_ACCESS_WATCHPOINT", bp_access_watchpoint },
{ "WP_READ", hw_read },
{ "WP_WRITE", hw_write },
{ "WP_ACCESS", hw_access },
}
#define END_INTEGER_CONSTANTS

Definition at line 1143 of file scm-breakpoint.c.

const char breakpoint_smob_name[] = "gdb:breakpoint"
static
scm_t_bits breakpoint_smob_tag
static
SCM internal_keyword
static

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

Referenced by gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().

SCM pending_breakpoint_scm = SCM_BOOL_F
static

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

Referenced by bpscm_breakpoint_created(), and gdbscm_register_breakpoint_x().

SCM type_keyword
static

Definition at line 102 of file scm-breakpoint.c.

Referenced by gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().

SCM wp_class_keyword
static

Definition at line 103 of file scm-breakpoint.c.

Referenced by gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().