GDB (xrefs)
|
#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 |
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 struct gdbscm_breakpoint_object breakpoint_smob |
|
static |
Definition at line 241 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, gdbscm_breakpoint_object::containing_scm, gdbscm_breakpoint_object::number, breakpoint::number, and breakpoint::scm_bp_object.
Referenced by bpscm_breakpoint_created(), and bpscm_build_bp_list().
|
static |
Definition at line 1099 of file scm-breakpoint.c.
References bpscm_attach_scm_to_breakpoint(), bpscm_want_scm_wrapper_p(), gdb_assert, gdbscm_is_false, and pending_breakpoint_scm.
Referenced by gdbscm_initialize_breakpoints().
|
static |
Definition at line 1119 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, gdbscm_breakpoint_object::containing_scm, get_breakpoint(), gdbscm_breakpoint_object::number, breakpoint::number, breakpoint::scm_bp_object, and gdbscm_breakpoint_object::stop.
Referenced by gdbscm_initialize_breakpoints().
|
static |
Definition at line 499 of file scm-breakpoint.c.
References bpscm_attach_scm_to_breakpoint(), bpscm_make_breakpoint_smob(), bpscm_want_scm_wrapper_p(), gdbscm_breakpoint_object::containing_scm, and breakpoint::scm_bp_object.
Referenced by gdbscm_breakpoints().
|
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 |
Definition at line 111 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().
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 |
Definition at line 288 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 310 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_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 259 of file scm-breakpoint.c.
References breakpoint_smob_tag.
Referenced by bpscm_get_breakpoint_arg_unsafe(), and gdbscm_breakpoint_p().
|
static |
Definition at line 300 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 199 of file scm-breakpoint.c.
References breakpoint_smob_name, breakpoint_smob_tag, 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 161 of file scm-breakpoint.c.
References breakpoint::addr_string, 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, gdbscm_breakpoint_object::number, breakpoint::silent, and breakpoint::type.
Referenced by gdbscm_initialize_breakpoints().
Definition at line 130 of file scm-breakpoint.c.
References bp_access_watchpoint, bp_breakpoint, bp_hardware_watchpoint, bp_none, bp_read_watchpoint, and bp_watchpoint.
Referenced by bpscm_print_breakpoint_smob().
|
static |
Definition at line 220 of file scm-breakpoint.c.
References bp_access_watchpoint, bp_breakpoint, bp_hardware_watchpoint, bp_read_watchpoint, bp_watchpoint, breakpoint::number, and breakpoint::type.
Referenced by bpscm_breakpoint_created(), and bpscm_build_bp_list().
|
static |
Definition at line 964 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint_commands(), CATCH, breakpoint::commands, current_uiout, do_cleanups(), END_CATCH, FUNC_NAME, gdbscm_scm_from_c_string(), gdbscm_throw_gdb_exception(), make_cleanup(), make_cleanup_ui_file_delete(), mem_fileopen(), print_command_lines(), RETURN_MASK_ALL, TRY, ui_file_xstrdup(), ui_out_redirect(), and xfree().
enum ext_lang_bp_stop gdbscm_breakpoint_cond_says_stop | ( | const struct extension_language_defn * | extlang, |
struct breakpoint * | b | ||
) |
Definition at line 1063 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 861 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 562 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 839 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(), if(), and is_watchpoint().
int gdbscm_breakpoint_has_cond | ( | const struct extension_language_defn * | extlang, |
struct breakpoint * | b | ||
) |
Definition at line 1042 of file scm-breakpoint.c.
References gdbscm_is_procedure(), breakpoint::scm_bp_object, and gdbscm_breakpoint_object::stop.
|
static |
Definition at line 676 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 635 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 818 of file scm-breakpoint.c.
References breakpoint::addr_string, gdbscm_breakpoint_object::bp, bp_breakpoint, bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, gdbscm_scm_from_c_string(), and breakpoint::type.
|
static |
Definition at line 1029 of file scm-breakpoint.c.
References bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and gdbscm_breakpoint_object::number.
|
static |
Definition at line 267 of file scm-breakpoint.c.
References bpscm_is_breakpoint().
|
static |
Definition at line 600 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 913 of file scm-breakpoint.c.
References bpscm_get_valid_breakpoint_smob_arg_unsafe(), FUNC_NAME, and gdbscm_breakpoint_object::stop.
|
static |
Definition at line 756 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 714 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 1007 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 551 of file scm-breakpoint.c.
References bpscm_get_breakpoint_smob_arg_unsafe(), bpscm_is_valid(), and FUNC_NAME.
|
static |
Definition at line 1018 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 534 of file scm-breakpoint.c.
References bpscm_build_bp_list(), and iterate_over_breakpoints().
|
static |
Definition at line 478 of file scm-breakpoint.c.
References gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), CATCH, delete_breakpoint(), END_CATCH, FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, RETURN_MASK_ALL, and TRY.
void gdbscm_initialize_breakpoints | ( | void | ) |
Definition at line 1307 of file scm-breakpoint.c.
References bpscm_breakpoint_created(), bpscm_breakpoint_deleted(), bpscm_free_breakpoint_smob(), bpscm_print_breakpoint_smob(), breakpoint_smob_name, breakpoint_smob_tag, gdbscm_define_functions(), gdbscm_define_integer_constants(), gdbscm_make_smob_type(), internal_keyword, observer_attach_breakpoint_created(), observer_attach_breakpoint_deleted(), type_keyword, and wp_class_keyword.
|
static |
Definition at line 335 of file scm-breakpoint.c.
References _, gdbscm_breakpoint_object::access_type, bp_breakpoint, bp_watchpoint, bpscm_make_breakpoint_smob(), FUNC_NAME, gdbscm_gc_xstrdup(), gdbscm_misc_error(), gdbscm_out_of_range_error(), gdbscm_parse_function_args(), hw_access, hw_read, hw_write, internal_keyword, gdbscm_breakpoint_object::is_internal, gdbscm_breakpoint_object::is_scheme_bkpt, gdbscm_breakpoint_object::location, gdbscm_breakpoint_object::spec, gdbscm_breakpoint_object::type, type, type_keyword, wp_class_keyword, and xfree().
|
static |
Definition at line 406 of file scm-breakpoint.c.
References _, gdbscm_breakpoint_object::access_type, AUTO_BOOLEAN_TRUE, awatch_command_wrapper(), bkpt_breakpoint_ops, bp_breakpoint, bp_watchpoint, bpscm_get_breakpoint_smob_arg_unsafe(), bpscm_is_valid(), CATCH, create_breakpoint(), END_CATCH, exception_none, FUNC_NAME, gdb_assert_not_reached, GDBSCM_HANDLE_GDB_EXCEPTION, get_current_arch(), hw_access, hw_read, hw_write, gdbscm_breakpoint_object::is_internal, gdbscm_breakpoint_object::is_scheme_bkpt, gdbscm_breakpoint_object::location, pending_breakpoint_scm, RETURN_MASK_ALL, rwatch_command_wrapper(), gdbscm_breakpoint_object::spec, TRY, gdbscm_breakpoint_object::type, and watch_command_wrapper().
|
static |
Definition at line 878 of file scm-breakpoint.c.
References _, gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), CATCH, END_CATCH, exception_none, watchpoint::exp, FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_is_false, gdbscm_scm_to_c_string(), RETURN_MASK_ALL, set_breakpoint_condition(), TRY, and xfree().
|
static |
Definition at line 573 of file scm-breakpoint.c.
References _, gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), CATCH, disable_breakpoint(), enable_breakpoint(), END_CATCH, FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_is_bool, gdbscm_is_true, RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 687 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 LONG_MAX.
|
static |
Definition at line 647 of file scm-breakpoint.c.
References _, bpscm_get_valid_breakpoint_smob_arg_unsafe(), CATCH, END_CATCH, FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, LONG_MAX, gdbscm_breakpoint_object::number, RETURN_MASK_ALL, set_ignore_count(), and TRY.
|
static |
Definition at line 611 of file scm-breakpoint.c.
References _, gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint_set_silent(), CATCH, END_CATCH, FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_is_bool, gdbscm_is_true, RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 925 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(), gdbscm_breakpoint_object::stop, and xstrprintf().
|
static |
Definition at line 770 of file scm-breakpoint.c.
References _, gdbscm_breakpoint_object::bp, bpscm_get_valid_breakpoint_smob_arg_unsafe(), breakpoint_set_task(), CATCH, END_CATCH, FUNC_NAME, GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_is_false, gdbscm_out_of_range_error(), LONG_MAX, RETURN_MASK_ALL, TRY, and valid_task_id().
|
static |
Definition at line 728 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(), LONG_MAX, and valid_thread_id().
|
static |
Definition at line 1159 of file scm-breakpoint.c.
|
static |
Definition at line 1143 of file scm-breakpoint.c.
|
static |
Definition at line 92 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 95 of file scm-breakpoint.c.
Referenced by bpscm_is_breakpoint(), bpscm_make_breakpoint_smob(), and gdbscm_initialize_breakpoints().
|
static |
Definition at line 104 of file scm-breakpoint.c.
Referenced by gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().
|
static |
Definition at line 99 of file scm-breakpoint.c.
Referenced by bpscm_breakpoint_created(), and gdbscm_register_breakpoint_x().
|
static |
Definition at line 102 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 gdbscm_initialize_breakpoints(), and gdbscm_make_breakpoint().