GDB (xrefs)
|
Go to the source code of this file.
Classes | |
struct | exception_smob |
Functions | |
static int | exscm_print_exception_smob (SCM self, SCM port, scm_print_state *pstate) |
SCM | gdbscm_make_exception (SCM key, SCM args) |
int | gdbscm_is_exception (SCM scm) |
static SCM | gdbscm_exception_p (SCM scm) |
SCM | gdbscm_exception_key (SCM self) |
SCM | gdbscm_exception_args (SCM self) |
SCM | gdbscm_make_exception_with_stack (SCM key, SCM args, SCM stack) |
SCM | gdbscm_make_error_scm (SCM key, SCM subr, SCM message, SCM args, SCM data) |
SCM | gdbscm_make_error (SCM key, const char *subr, const char *message, SCM args, SCM data) |
SCM | gdbscm_make_type_error (const char *subr, int arg_pos, SCM bad_value, const char *expected_type) |
static SCM | gdbscm_make_arg_error (SCM key, const char *subr, int arg_pos, SCM bad_value, const char *error_prefix, const char *error) |
SCM | gdbscm_make_invalid_object_error (const char *subr, int arg_pos, SCM bad_value, const char *object) |
void | gdbscm_invalid_object_error (const char *subr, int arg_pos, SCM bad_value, const char *object) |
SCM | gdbscm_make_out_of_range_error (const char *subr, int arg_pos, SCM bad_value, const char *error) |
void | gdbscm_out_of_range_error (const char *subr, int arg_pos, SCM bad_value, const char *error) |
SCM | gdbscm_make_misc_error (const char *subr, int arg_pos, SCM bad_value, const char *error) |
void | gdbscm_misc_error (const char *subr, int arg_pos, SCM bad_value, const char *error) |
SCM | gdbscm_make_memory_error (const char *subr, const char *msg, SCM args) |
void | gdbscm_memory_error (const char *subr, const char *msg, SCM args) |
int | gdbscm_memory_error_p (SCM key) |
int | gdbscm_user_error_p (SCM key) |
void | gdbscm_throw (SCM exception) |
SCM | gdbscm_scm_from_gdb_exception (const gdbscm_gdb_exception &exception) |
void | gdbscm_throw_gdb_exception (gdbscm_gdb_exception exception) |
static void | gdbscm_print_exception_message (SCM port, SCM frame, SCM key, SCM args) |
void | gdbscm_print_exception_with_stack (SCM port, SCM stack, SCM key, SCM args) |
void | gdbscm_print_gdb_exception (SCM port, SCM exception) |
gdb::unique_xmalloc_ptr< char > | gdbscm_exception_message_to_string (SCM exception) |
static SCM | gdbscm_percent_exception_print_style (void) |
static SCM | gdbscm_percent_exception_count (void) |
void | gdbscm_initialize_exceptions (void) |
Variables | |
static const char | exception_smob_name [] = "gdb:exception" |
static scm_t_bits | exception_smob_tag |
static SCM | error_symbol |
static SCM | memory_error_symbol |
static SCM | signal_symbol |
static SCM | user_error_symbol |
static SCM | with_stack_error_symbol |
SCM | gdbscm_invalid_object_error_symbol |
static SCM | none_symbol |
static SCM | message_symbol |
static SCM | full_symbol |
static const char | percent_print_exception_message_name [] |
static SCM | percent_print_exception_message_var = SCM_BOOL_F |
static const char | percent_print_exception_with_stack_name [] |
static SCM | percent_print_exception_with_stack_var = SCM_BOOL_F |
static unsigned long | gdbscm_exception_count = 0 |
static const scheme_function | exception_functions [] |
static const scheme_function | private_exception_functions [] |
|
static |
Definition at line 109 of file scm-exception.c.
References exception_smob::args, exception_smob_name, gdbscm_printf(), and exception_smob::key.
Referenced by gdbscm_initialize_exceptions().
SCM gdbscm_exception_args | ( | SCM | self | ) |
Definition at line 177 of file scm-exception.c.
References exception_smob::args, FUNC_NAME, and gdbscm_is_exception().
Referenced by gdbscm_exception_message_to_string(), gdbscm_print_gdb_exception(), and gdbscm_throw().
SCM gdbscm_exception_key | ( | SCM | self | ) |
Definition at line 163 of file scm-exception.c.
References FUNC_NAME, gdbscm_is_exception(), and exception_smob::key.
Referenced by cmdscm_function(), gdbscm_exception_message_to_string(), gdbscm_print_gdb_exception(), gdbscm_throw(), pascm_signal_setshow_error(), and ppscm_print_exception_unless_memory_error().
gdb::unique_xmalloc_ptr< char > gdbscm_exception_message_to_string | ( | SCM | exception | ) |
Definition at line 581 of file scm-exception.c.
References gdbscm_exception_args(), gdbscm_exception_key(), gdbscm_is_exception(), gdbscm_print_exception_message(), gdbscm_scm_to_c_string(), and with_stack_error_symbol.
Referenced by cmdscm_function(), pascm_signal_setshow_error(), and ppscm_print_exception_unless_memory_error().
|
static |
Definition at line 155 of file scm-exception.c.
References gdbscm_is_exception().
void gdbscm_initialize_exceptions | ( | void | ) |
Definition at line 674 of file scm-exception.c.
References error_symbol, exception_functions, exception_smob_name, exception_smob_tag, exscm_print_exception_smob(), full_symbol, gdbscm_define_functions(), gdbscm_invalid_object_error_symbol, gdbscm_make_smob_type(), memory_error_symbol, message_symbol, none_symbol, private_exception_functions, signal_symbol, user_error_symbol, and with_stack_error_symbol.
void gdbscm_invalid_object_error | ( | const char * | subr, |
int | arg_pos, | ||
SCM | bad_value, | ||
const char * | object ) |
Definition at line 323 of file scm-exception.c.
References gdbscm_make_invalid_object_error(), and gdbscm_throw().
Referenced by bkscm_get_valid_block_smob_arg_unsafe(), bpscm_get_valid_breakpoint_smob_arg_unsafe(), cmdscm_get_valid_command_smob_arg_unsafe(), frscm_get_frame_smob_arg_unsafe(), gdbscm_frame_arch(), gdbscm_frame_block(), gdbscm_frame_function(), gdbscm_frame_name(), gdbscm_frame_newer(), gdbscm_frame_older(), gdbscm_frame_pc(), gdbscm_frame_read_register(), gdbscm_frame_read_var(), gdbscm_frame_sal(), gdbscm_frame_select(), gdbscm_frame_type(), gdbscm_frame_unwind_stop_reason(), ofscm_get_valid_objfile_smob_arg_unsafe(), psscm_get_valid_pspace_smob_arg_unsafe(), stscm_get_valid_sal_smob_arg(), stscm_get_valid_symtab_smob_arg_unsafe(), and syscm_get_valid_symbol_smob_arg_unsafe().
int gdbscm_is_exception | ( | SCM | scm | ) |
Definition at line 147 of file scm-exception.c.
References exception_smob_tag.
Referenced by cmdscm_completer(), cmdscm_function(), frscm_scm_from_frame_unsafe(), gdbscm_apply_val_pretty_printer(), gdbscm_breakpoint_cond_says_stop(), gdbscm_exception_args(), gdbscm_exception_key(), gdbscm_exception_message_to_string(), gdbscm_exception_p(), gdbscm_make_parameter(), gdbscm_print_exception_message(), gdbscm_print_exception_with_stack(), gdbscm_print_gdb_exception(), gdbscm_scm_from_string(), gdbscm_scm_to_string(), gdbscm_value_address(), gdbscm_value_to_lazy_string(), gdbscm_wrap(), ioscm_with_output_to_port_worker(), pascm_set_func(), pascm_show_func(), ppscm_pretty_print_one_value(), ppscm_print_children(), ppscm_print_string_repr(), and ppscm_search_pp_list().
|
static |
Definition at line 278 of file scm-exception.c.
References gdbscm_make_error().
Referenced by gdbscm_make_invalid_object_error(), gdbscm_make_misc_error(), and gdbscm_make_out_of_range_error().
SCM gdbscm_make_error | ( | SCM | key, |
const char * | subr, | ||
const char * | message, | ||
SCM | args, | ||
SCM | data ) |
Definition at line 220 of file scm-exception.c.
References gdbscm_make_error_scm().
Referenced by gdbscm_make_arg_error(), gdbscm_make_memory_error(), gdbscm_make_type_error(), gdbscm_parse_function_args_1(), gdbscm_scm_from_gdb_exception(), and ppscm_make_pp_type_error_exception().
SCM gdbscm_make_error_scm | ( | SCM | key, |
SCM | subr, | ||
SCM | message, | ||
SCM | args, | ||
SCM | data ) |
Definition at line 210 of file scm-exception.c.
References gdbscm_make_exception().
Referenced by gdbscm_make_error().
SCM gdbscm_make_exception | ( | SCM | key, |
SCM | args ) |
Definition at line 128 of file scm-exception.c.
References exception_smob::args, exception_smob::base, exception_smob_name, exception_smob_tag, gdbscm_exception_count, gdbscm_init_gsmob(), exception_smob::key, and scm_new_smob().
Referenced by gdbscm_make_error_scm(), gdbscm_make_exception_with_stack(), and scscm_recording_unwind_handler().
SCM gdbscm_make_exception_with_stack | ( | SCM | key, |
SCM | args, | ||
SCM | stack ) |
Definition at line 192 of file scm-exception.c.
References gdbscm_make_exception(), and with_stack_error_symbol.
Referenced by scscm_recording_unwind_handler().
SCM gdbscm_make_invalid_object_error | ( | const char * | subr, |
int | arg_pos, | ||
SCM | bad_value, | ||
const char * | object ) |
Definition at line 311 of file scm-exception.c.
References gdbscm_invalid_object_error_symbol, and gdbscm_make_arg_error().
Referenced by bkscm_get_valid_block(), and gdbscm_invalid_object_error().
SCM gdbscm_make_memory_error | ( | const char * | subr, |
const char * | msg, | ||
SCM | args ) |
Definition at line 380 of file scm-exception.c.
References gdbscm_make_error(), and memory_error_symbol.
Referenced by gdbscm_memory_error().
SCM gdbscm_make_misc_error | ( | const char * | subr, |
int | arg_pos, | ||
SCM | bad_value, | ||
const char * | error ) |
Definition at line 359 of file scm-exception.c.
References gdbscm_make_arg_error().
Referenced by gdbscm_misc_error(), and vlscm_convert_typed_value_from_scheme().
SCM gdbscm_make_out_of_range_error | ( | const char * | subr, |
int | arg_pos, | ||
SCM | bad_value, | ||
const char * | error ) |
Definition at line 335 of file scm-exception.c.
References gdbscm_make_arg_error().
Referenced by gdbscm_out_of_range_error(), gdbscm_value_to_string(), lsscm_make_lazy_string(), lsscm_safe_lazy_string_to_value(), pascm_param_value(), vlscm_convert_bytevector(), vlscm_convert_number(), and vlscm_convert_typed_number().
SCM gdbscm_make_type_error | ( | const char * | subr, |
int | arg_pos, | ||
SCM | bad_value, | ||
const char * | expected_type ) |
Definition at line 234 of file scm-exception.c.
References gdbscm_make_error().
Referenced by bkscm_get_valid_block(), vlscm_convert_typed_number(), and vlscm_convert_typed_value_from_scheme().
void gdbscm_memory_error | ( | const char * | subr, |
const char * | msg, | ||
SCM | args ) |
Definition at line 389 of file scm-exception.c.
References gdbscm_make_memory_error(), and gdbscm_throw().
Referenced by gdbscm_memory_port_read(), and gdbscm_memory_port_write().
int gdbscm_memory_error_p | ( | SCM | key | ) |
Definition at line 400 of file scm-exception.c.
References memory_error_symbol.
void gdbscm_misc_error | ( | const char * | subr, |
int | arg_pos, | ||
SCM | bad_value, | ||
const char * | error ) |
Definition at line 369 of file scm-exception.c.
References gdbscm_make_misc_error(), and gdbscm_throw().
Referenced by gdbscm_make_breakpoint(), gdbscm_make_parameter(), and gdbscm_register_parameter_x().
void gdbscm_out_of_range_error | ( | const char * | subr, |
int | arg_pos, | ||
SCM | bad_value, | ||
const char * | error ) |
Definition at line 347 of file scm-exception.c.
References gdbscm_make_out_of_range_error(), and gdbscm_throw().
Referenced by compute_enum_list(), gdbscm_arch_disassemble(), gdbscm_frame_read_register(), gdbscm_frame_read_var(), gdbscm_lookup_block(), gdbscm_make_breakpoint(), gdbscm_make_command(), gdbscm_make_field_iterator(), gdbscm_make_parameter(), gdbscm_memory_port_seek(), gdbscm_memory_port_write(), gdbscm_open_memory(), gdbscm_parameter_value(), gdbscm_parse_command_name(), gdbscm_set_breakpoint_hit_count_x(), gdbscm_set_breakpoint_stop_x(), gdbscm_set_breakpoint_task_x(), gdbscm_set_breakpoint_thread_x(), gdbscm_set_memory_port_read_buffer_size_x(), gdbscm_set_memory_port_write_buffer_size_x(), gdbscm_symbol_value(), gdbscm_type_field(), gdbscm_type_fields(), gdbscm_type_has_field_p(), gdbscm_type_num_fields(), gdbscm_value_to_lazy_string(), gdbscm_value_to_real(), ioscm_parse_mode_bits(), pascm_set_param_value_x(), and tyscm_array_1().
|
static |
Definition at line 626 of file scm-exception.c.
References gdbscm_exception_count.
|
static |
Definition at line 611 of file scm-exception.c.
References full_symbol, gdbscm_print_excp, gdbscm_print_excp_full, gdbscm_print_excp_message, gdbscm_print_excp_none, message_symbol, and none_symbol.
|
static |
Definition at line 470 of file scm-exception.c.
References gdbscm_init_module_name, gdbscm_is_exception(), gdbscm_is_false, gdbscm_printf(), gdbscm_safe_call_4(), percent_print_exception_message_name, percent_print_exception_message_var, status, and with_stack_error_symbol.
Referenced by gdbscm_exception_message_to_string().
void gdbscm_print_exception_with_stack | ( | SCM | port, |
SCM | stack, | ||
SCM | key, | ||
SCM | args ) |
Definition at line 526 of file scm-exception.c.
References gdbscm_init_module_name, gdbscm_is_exception(), gdbscm_is_false, gdbscm_printf(), gdbscm_safe_call_4(), percent_print_exception_with_stack_name, percent_print_exception_with_stack_var, and status.
Referenced by gdbscm_print_gdb_exception(), and scscm_printing_pre_unwind_handler().
void gdbscm_print_gdb_exception | ( | SCM | port, |
SCM | exception ) |
Definition at line 567 of file scm-exception.c.
References gdbscm_exception_args(), gdbscm_exception_key(), gdbscm_is_exception(), and gdbscm_print_exception_with_stack().
Referenced by cmdscm_add_completion(), cmdscm_completer(), cmdscm_function(), pascm_set_func(), pascm_show_func(), pascm_signal_setshow_error(), ppscm_print_exception_unless_memory_error(), and ppscm_print_pp_type_error().
SCM gdbscm_scm_from_gdb_exception | ( | const gdbscm_gdb_exception & | exception | ) |
Definition at line 429 of file scm-exception.c.
References gdbscm_gdb_exception::error, error_symbol, gdbscm_make_error(), gdbscm_scm_from_c_string(), memory_error_symbol, gdbscm_gdb_exception::message, gdbscm_gdb_exception::reason, and signal_symbol.
Referenced by frscm_scm_from_frame(), gdbscm_throw_gdb_exception(), lsscm_safe_lazy_string_to_value(), tyscm_type_name(), and vlscm_convert_typed_value_from_scheme().
void gdbscm_throw | ( | SCM | exception | ) |
Definition at line 419 of file scm-exception.c.
References gdbscm_exception_args(), and gdbscm_exception_key().
Referenced by compute_enum_list(), frscm_scm_from_frame_unsafe(), gdbscm_frame_read_var(), gdbscm_invalid_object_error(), gdbscm_lazy_string_to_value(), gdbscm_lookup_symbol(), gdbscm_lookup_type(), gdbscm_make_parameter(), gdbscm_memory_error(), gdbscm_misc_error(), gdbscm_out_of_range_error(), gdbscm_parameter_value(), gdbscm_throw_gdb_exception(), gdbscm_value_call(), gdbscm_value_to_lazy_string(), gdbscm_value_to_string(), gdbscm_wrap(), ioscm_with_output_to_port_worker(), pascm_set_param_value_x(), and tyscm_type_name().
void gdbscm_throw_gdb_exception | ( | gdbscm_gdb_exception | exception | ) |
Definition at line 455 of file scm-exception.c.
References gdbscm_scm_from_gdb_exception(), gdbscm_throw(), gdbscm_gdb_exception::message, and xfree().
int gdbscm_user_error_p | ( | SCM | key | ) |
Definition at line 409 of file scm-exception.c.
References user_error_symbol.
|
static |
Definition at line 57 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), and gdbscm_scm_from_gdb_exception().
|
static |
Definition at line 633 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions().
|
static |
Definition at line 50 of file scm-exception.c.
Referenced by exscm_print_exception_smob(), gdbscm_initialize_exceptions(), and gdbscm_make_exception().
|
static |
Definition at line 53 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), gdbscm_is_exception(), and gdbscm_make_exception().
|
static |
Definition at line 82 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), and gdbscm_percent_exception_print_style().
|
static |
Definition at line 102 of file scm-exception.c.
Referenced by gdbscm_make_exception(), and gdbscm_percent_exception_count().
SCM gdbscm_invalid_object_error_symbol |
Definition at line 77 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), and gdbscm_make_invalid_object_error().
|
static |
Definition at line 61 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), gdbscm_make_memory_error(), gdbscm_memory_error_p(), and gdbscm_scm_from_gdb_exception().
|
static |
Definition at line 81 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), and gdbscm_percent_exception_print_style().
|
static |
Definition at line 80 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), and gdbscm_percent_exception_print_style().
|
static |
Definition at line 84 of file scm-exception.c.
Referenced by gdbscm_print_exception_message().
|
static |
Definition at line 90 of file scm-exception.c.
Referenced by gdbscm_print_exception_message().
|
static |
Definition at line 92 of file scm-exception.c.
Referenced by gdbscm_print_exception_with_stack().
|
static |
Definition at line 98 of file scm-exception.c.
Referenced by gdbscm_print_exception_with_stack().
|
static |
Definition at line 657 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions().
|
static |
Definition at line 64 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), and gdbscm_scm_from_gdb_exception().
|
static |
Definition at line 67 of file scm-exception.c.
Referenced by gdbscm_initialize_exceptions(), and gdbscm_user_error_p().
|
static |
Definition at line 73 of file scm-exception.c.
Referenced by gdbscm_exception_message_to_string(), gdbscm_initialize_exceptions(), gdbscm_make_exception_with_stack(), and gdbscm_print_exception_message().