GDB (xrefs)
|
#include "defs.h"
#include "value.h"
#include "breakpoint.h"
#include "gdbcmd.h"
#include "gdbthread.h"
#include "observable.h"
#include "cli/cli-script.h"
#include "ada-lang.h"
#include "arch-utils.h"
#include "language.h"
#include "guile-internal.h"
#include "location.h"
Go to the source code of this file.
Classes | |
struct | gdbscm_breakpoint_object |
Typedefs | |
typedef struct gdbscm_breakpoint_object | breakpoint_smob |
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 SCM | temporary_keyword |
static const scheme_integer_constant | breakpoint_integer_constants [] |
static const scheme_function | breakpoint_functions [] |
typedef struct gdbscm_breakpoint_object breakpoint_smob |
|
static |
Definition at line 252 of file scm-breakpoint.c.
References bp, gdbscm_breakpoint_object::bp, gdbscm_breakpoint_object::containing_scm, gdbscm_breakpoint_object::number, and breakpoint::scm_bp_object.
Referenced by bpscm_breakpoint_created(), and bpscm_build_bp_list().
|
static |
Definition at line 1140 of file scm-breakpoint.c.
References bp, bpscm_attach_scm_to_breakpoint(), bpscm_want_scm_wrapper_p(), gdbscm_is_false, and pending_breakpoint_scm.
Referenced by gdbscm_initialize_breakpoints().
|
static |
Definition at line 1160 of file scm-breakpoint.c.
References bp, gdbscm_breakpoint_object::bp, gdbscm_breakpoint_object::containing_scm, get_breakpoint(), breakpoint::number, gdbscm_breakpoint_object::number, and gdbscm_breakpoint_object::stop.
Referenced by gdbscm_initialize_breakpoints().
|
static |
Definition at line 536 of file scm-breakpoint.c.
References bp, bpscm_attach_scm_to_breakpoint(), bpscm_make_breakpoint_smob(), bpscm_want_scm_wrapper_p(), and gdbscm_breakpoint_object::containing_scm.
Referenced by gdbscm_breakpoints().
|
static |
Definition at line 153 of file scm-breakpoint.c.
References bp_call_disabled, bp_disabled, and bp_enabled.
Referenced by bpscm_print_breakpoint_smob().
|
static |
Definition at line 116 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, gdbscm_breakpoint_object::containing_scm, breakpoint::scm_bp_object, and gdbscm_breakpoint_object::stop.
Referenced by gdbscm_initialize_breakpoints().
|
static |
Definition at line 287 of file scm-breakpoint.c.
References bpscm_is_breakpoint(), and breakpoint_smob_name.
Referenced by bpscm_get_breakpoint_smob_arg_unsafe().
|
static |
Definition at line 299 of file scm-breakpoint.c.
References bpscm_get_breakpoint_arg_unsafe().
Referenced by bpscm_get_valid_breakpoint_smob_arg_unsafe(), gdbscm_breakpoint_valid_p(), and gdbscm_register_breakpoint_x().
|
static |
Definition at line 321 of file scm-breakpoint.c.
References bpscm_get_breakpoint_smob_arg_unsafe(), bpscm_is_valid(), and gdbscm_invalid_object_error().
Referenced by gdbscm_breakpoint_commands(), gdbscm_breakpoint_condition(), gdbscm_breakpoint_enabled_p(), gdbscm_breakpoint_expression(), gdbscm_breakpoint_hit_count(), gdbscm_breakpoint_ignore_count(), gdbscm_breakpoint_location(), gdbscm_breakpoint_number(), gdbscm_breakpoint_silent_p(), gdbscm_breakpoint_stop(), gdbscm_breakpoint_task(), gdbscm_breakpoint_temporary(), gdbscm_breakpoint_thread(), gdbscm_breakpoint_type(), gdbscm_breakpoint_visible(), gdbscm_delete_breakpoint_x(), gdbscm_set_breakpoint_condition_x(), gdbscm_set_breakpoint_enabled_x(), gdbscm_set_breakpoint_hit_count_x(), gdbscm_set_breakpoint_ignore_count_x(), gdbscm_set_breakpoint_silent_x(), gdbscm_set_breakpoint_stop_x(), gdbscm_set_breakpoint_task_x(), and gdbscm_set_breakpoint_thread_x().
|
static |
Definition at line 270 of file scm-breakpoint.c.
References breakpoint_smob_tag.
Referenced by bpscm_get_breakpoint_arg_unsafe(), and gdbscm_breakpoint_p().
|
static |
Definition at line 311 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp.
Referenced by bpscm_get_valid_breakpoint_smob_arg_unsafe(), gdbscm_breakpoint_valid_p(), and gdbscm_register_breakpoint_x().
|
static |
Definition at line 209 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::base, breakpoint_smob_name, breakpoint_smob_tag, gdbscm_breakpoint_object::containing_scm, gdbscm_init_gsmob(), gdbscm_breakpoint_object::number, scm_new_smob(), and gdbscm_breakpoint_object::stop.
Referenced by bpscm_build_bp_list(), and gdbscm_make_breakpoint().
|
static |
Definition at line 167 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_enable_state_to_string(), bpscm_type_to_string(), breakpoint_smob_name, breakpoint::enable_state, gdbscm_printf(), breakpoint::hit_count, breakpoint::ignore_count, breakpoint::locspec, gdbscm_breakpoint_object::number, breakpoint::silent, and breakpoint::type.
Referenced by gdbscm_initialize_breakpoints().
|
static |
Definition at line 135 of file scm-breakpoint.c.
References bp_access_watchpoint, bp_breakpoint, bp_catchpoint, bp_hardware_watchpoint, bp_none, bp_read_watchpoint, and bp_watchpoint.
Referenced by bpscm_print_breakpoint_smob(), and gdbscm_make_breakpoint().
|
static |
Definition at line 230 of file scm-breakpoint.c.
References bp, bp_access_watchpoint, bp_breakpoint, bp_catchpoint, bp_hardware_watchpoint, bp_read_watchpoint, and bp_watchpoint.
Referenced by bpscm_breakpoint_created(), and bpscm_build_bp_list().
|
static |
Definition at line 1002 of file scm-breakpoint.c.
References bp, gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint_commands(), string_file::c_str(), current_uiout, FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_scm_from_c_string(), print_command_lines(), and unpack().
enum ext_lang_bp_stop gdbscm_breakpoint_cond_says_stop | ( | const struct extension_language_defn * | extlang, |
struct breakpoint * | b ) |
Definition at line 1103 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::containing_scm, EXT_LANG_BP_STOP_NO, EXT_LANG_BP_STOP_UNSET, EXT_LANG_BP_STOP_YES, gdbscm_is_exception(), gdbscm_is_false, gdbscm_is_procedure(), gdbscm_safe_call_1(), breakpoint::scm_bp_object, and gdbscm_breakpoint_object::stop.
|
static |
Definition at line 909 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint::cond_string, FUNC_NAME, and gdbscm_scm_from_c_string().
|
static |
Definition at line 593 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bp_enabled, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint::enable_state, and FUNC_NAME.
|
static |
Definition at line 889 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), watchpoint::exp_string, FUNC_NAME, gdbscm_scm_from_c_string(), and is_watchpoint().
int gdbscm_breakpoint_has_cond | ( | const struct extension_language_defn * | extlang, |
struct breakpoint * | b ) |
Definition at line 1083 of file scm-breakpoint.c.
References gdbscm_is_procedure(), breakpoint::scm_bp_object, and gdbscm_breakpoint_object::stop.
|
static |
Definition at line 710 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and breakpoint::hit_count.
|
static |
Definition at line 668 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and breakpoint::ignore_count.
|
static |
Definition at line 869 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bp_breakpoint, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, gdbscm_scm_from_c_string(), breakpoint::locspec, and breakpoint::type.
|
static |
Definition at line 1058 of file scm-breakpoint.c.
References bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and gdbscm_breakpoint_object::number.
|
static |
Definition at line 278 of file scm-breakpoint.c.
References bpscm_is_breakpoint().
|
static |
Definition at line 632 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and breakpoint::silent.
|
static |
Definition at line 951 of file scm-breakpoint.c.
References bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and gdbscm_breakpoint_object::stop.
|
static |
Definition at line 800 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and breakpoint::task.
|
static |
Definition at line 1069 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), disp_del, disp_del_at_next_stop, breakpoint::disposition, and FUNC_NAME.
|
static |
Definition at line 748 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and breakpoint::thread.
|
static |
Definition at line 1036 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and breakpoint::type.
|
static |
Definition at line 582 of file scm-breakpoint.c.
References bpscm_get_breakpoint_smob_arg_unsafe(), bpscm_is_valid(), and FUNC_NAME.
|
static |
Definition at line 1047 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and breakpoint::number.
|
static |
Definition at line 568 of file scm-breakpoint.c.
References all_breakpoints(), bp, and bpscm_build_bp_list().
|
static |
Definition at line 514 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), delete_breakpoint(), FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, and unpack().
void gdbscm_initialize_breakpoints | ( | void | ) |
Definition at line 1368 of file scm-breakpoint.c.
References bpscm_breakpoint_created(), bpscm_breakpoint_deleted(), bpscm_free_breakpoint_smob(), bpscm_print_breakpoint_smob(), gdb::observers::breakpoint_created, gdb::observers::breakpoint_deleted, breakpoint_functions, breakpoint_integer_constants, breakpoint_smob_name, breakpoint_smob_tag, gdbscm_define_functions(), gdbscm_define_integer_constants(), gdbscm_make_smob_type(), internal_keyword, temporary_keyword, type_keyword, and wp_class_keyword.
|
static |
Definition at line 346 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::access_type, bp_access_watchpoint, bp_breakpoint, bp_catchpoint, bp_hardware_watchpoint, bp_none, bp_read_watchpoint, bp_watchpoint, bpscm_make_breakpoint_smob(), bpscm_type_to_string(), FUNC_NAME, gdbscm_gc_xstrdup(), gdbscm_misc_error(), gdbscm_out_of_range_error(), gdbscm_parse_function_args(), gdbscm_scm_from_c_string(), internal_keyword, gdbscm_breakpoint_object::is_internal, gdbscm_breakpoint_object::is_scheme_bkpt, gdbscm_breakpoint_object::is_temporary, gdbscm_breakpoint_object::location, gdbscm_breakpoint_object::spec, temporary_keyword, gdbscm_breakpoint_object::type, type_keyword, wp_class_keyword, and xfree().
|
static |
Definition at line 434 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::access_type, AUTO_BOOLEAN_TRUE, awatch_command_wrapper(), bp_breakpoint, bp_watchpoint, bpscm_get_breakpoint_smob_arg_unsafe(), bpscm_is_valid(), breakpoint_ops_for_location_spec(), create_breakpoint(), current_language, FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, get_current_arch(), gdbscm_breakpoint_object::is_internal, gdbscm_breakpoint_object::is_scheme_bkpt, gdbscm_breakpoint_object::is_temporary, gdbscm_breakpoint_object::location, breakpoint::locspec, pending_breakpoint_scm, rwatch_command_wrapper(), gdbscm_breakpoint_object::spec, string_to_location_spec_basic(), gdbscm_breakpoint_object::type, unpack(), watch_command_wrapper(), and WILD.
|
static |
Definition at line 926 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, gdbscm_is_false, gdbscm_scm_to_c_string(), gdbscm_wrap(), nullptr, and set_breakpoint_condition().
|
static |
Definition at line 604 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), disable_breakpoint(), enable_breakpoint(), FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_is_bool, gdbscm_is_true, and unpack().
|
static |
Definition at line 721 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, gdbscm_out_of_range_error(), breakpoint::hit_count, and value.
|
static |
Definition at line 680 of file scm-breakpoint.c.
References bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_breakpoint_object::number, set_ignore_count(), unpack(), and value.
|
static |
Definition at line 643 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint_set_silent(), FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_is_bool, gdbscm_is_true, and unpack().
|
static |
Definition at line 963 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint::cond_string, ext_lang_capitalized_name(), EXT_LANG_GDB, EXT_LANG_GUILE, FUNC_NAME, gdbscm_dynwind_xfree(), gdbscm_is_false, gdbscm_is_procedure(), gdbscm_out_of_range_error(), get_breakpoint_cond_ext_lang(), get_ext_lang_defn(), and gdbscm_breakpoint_object::stop.
|
static |
Definition at line 814 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint_set_task(), FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_is_false, gdbscm_out_of_range_error(), breakpoint::thread, unpack(), and valid_task_id().
|
static |
Definition at line 762 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint_set_thread(), FUNC_NAME, gdbscm_is_false, gdbscm_out_of_range_error(), breakpoint::inferior, breakpoint::task, and valid_global_thread_id().
|
static |
Definition at line 1201 of file scm-breakpoint.c.
Referenced by gdbscm_initialize_breakpoints().
|
static |
Definition at line 1184 of file scm-breakpoint.c.
Referenced by gdbscm_initialize_breakpoints().
|
static |
Definition at line 96 of file scm-breakpoint.c.
Referenced by bpscm_get_breakpoint_arg_unsafe(), bpscm_make_breakpoint_smob(), bpscm_print_breakpoint_smob(), and gdbscm_initialize_breakpoints().
|
static |
Definition at line 99 of file scm-breakpoint.c.
Referenced by bpscm_is_breakpoint(), bpscm_make_breakpoint_smob(), and gdbscm_initialize_breakpoints().
|
static |
Definition at line 108 of file scm-breakpoint.c.
Referenced by gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().
|
static |
Definition at line 103 of file scm-breakpoint.c.
Referenced by bpscm_breakpoint_created(), and gdbscm_register_breakpoint_x().
|
static |
Definition at line 109 of file scm-breakpoint.c.
Referenced by gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().
|
static |
Definition at line 106 of file scm-breakpoint.c.
Referenced by gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().
|
static |
Definition at line 107 of file scm-breakpoint.c.
Referenced by gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().