GDB (xrefs)
|
#include "defs.h"
#include "top.h"
#include "charset.h"
#include "symtab.h"
#include "language.h"
#include "objfiles.h"
#include "value.h"
#include "valprint.h"
#include "guile-internal.h"
Go to the source code of this file.
Classes | |
struct | pretty_printer_smob |
struct | pretty_printer_worker_smob |
Enumerations | |
enum | guile_string_repr_result { STRING_REPR_NONE , STRING_REPR_ERROR , STRING_REPR_OK } |
enum | display_hint { HINT_NONE , HINT_ERROR , HINT_ARRAY , HINT_MAP , HINT_STRING } |
Variables | |
static const char | pretty_printer_smob_name [] |
static const char | pretty_printer_worker_smob_name [] |
static scm_t_bits | pretty_printer_smob_tag |
static scm_t_bits | pretty_printer_worker_smob_tag |
static SCM | pretty_printer_list |
static SCM | pp_type_error_symbol |
static SCM | ppscm_map_string |
static SCM | ppscm_array_string |
static SCM | ppscm_string_string |
static const scheme_function | pretty_printer_functions [] |
enum display_hint |
Enumerator | |
---|---|
HINT_NONE | |
HINT_ERROR | |
HINT_ARRAY | |
HINT_MAP | |
HINT_STRING |
Definition at line 47 of file scm-pretty-print.c.
Enumerator | |
---|---|
STRING_REPR_NONE | |
STRING_REPR_ERROR | |
STRING_REPR_OK |
Definition at line 35 of file scm-pretty-print.c.
enum ext_lang_rc gdbscm_apply_val_pretty_printer | ( | const struct extension_language_defn * | extlang, |
struct value * | value, | ||
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value_print_options * | options, | ||
const struct language_defn * | language ) |
Definition at line 958 of file scm-pretty-print.c.
References type::arch(), value::bytes_available(), EXT_LANG_RC_ERROR, EXT_LANG_RC_NOP, EXT_LANG_RC_OK, value::fetch_lazy(), gdb_scheme_initialized, gdbscm_is_exception(), gdbscm_is_false, HINT_ERROR, HINT_NONE, value::lazy(), type::length(), ppscm_find_pretty_printer(), ppscm_get_display_hint_enum(), ppscm_get_display_hint_scm(), ppscm_is_pretty_printer_worker(), ppscm_print_children(), ppscm_print_exception_unless_memory_error(), ppscm_print_pp_type_error(), ppscm_print_string_repr(), STRING_REPR_ERROR, STRING_REPR_NONE, value::type(), and vlscm_scm_from_value_no_release().
void gdbscm_initialize_pretty_printers | ( | void | ) |
Definition at line 1096 of file scm-pretty-print.c.
References gdbscm_define_functions(), gdbscm_make_smob_type(), pp_type_error_symbol, ppscm_array_string, ppscm_map_string, ppscm_print_pretty_printer_smob(), ppscm_print_pretty_printer_worker_smob(), ppscm_string_string, pretty_printer_functions, pretty_printer_list, pretty_printer_smob_name, pretty_printer_smob_tag, pretty_printer_worker_smob_name, and pretty_printer_worker_smob_tag.
|
static |
Definition at line 149 of file scm-pretty-print.c.
References pretty_printer_smob::base, pretty_printer_smob::enabled, FUNC_NAME, gdbscm_init_gsmob(), gdbscm_is_procedure(), pretty_printer_smob::lookup, name, pretty_printer_smob::name, pretty_printer_smob_name, pretty_printer_smob_tag, and scm_new_smob().
|
static |
Definition at line 293 of file scm-pretty-print.c.
References pretty_printer_worker_smob::base, pretty_printer_worker_smob::children, pretty_printer_worker_smob::display_hint, gdbscm_init_gsmob(), pretty_printer_worker_smob_name, pretty_printer_worker_smob_tag, scm_new_smob(), to_string(), and pretty_printer_worker_smob::to_string.
|
static |
Definition at line 218 of file scm-pretty-print.c.
References pretty_printer_smob::enabled, FUNC_NAME, and ppscm_get_pretty_printer_smob_arg_unsafe().
|
static |
Definition at line 181 of file scm-pretty-print.c.
References ppscm_is_pretty_printer().
|
static |
Definition at line 320 of file scm-pretty-print.c.
References ppscm_is_pretty_printer_worker().
|
static |
Definition at line 244 of file scm-pretty-print.c.
References pretty_printer_list.
|
static |
Definition at line 230 of file scm-pretty-print.c.
References pretty_printer_smob::enabled, FUNC_NAME, gdbscm_is_true, and ppscm_get_pretty_printer_smob_arg_unsafe().
|
static |
Definition at line 253 of file scm-pretty-print.c.
References FUNC_NAME, gdbscm_is_true, and pretty_printer_list.
|
static |
Definition at line 486 of file scm-pretty-print.c.
References gdbscm_is_true, ppscm_find_pretty_printer_from_gdb(), ppscm_find_pretty_printer_from_objfiles(), and ppscm_find_pretty_printer_from_progspace().
Referenced by gdbscm_apply_val_pretty_printer().
|
static |
Definition at line 470 of file scm-pretty-print.c.
References ppscm_search_pp_list(), and pretty_printer_list.
Referenced by ppscm_find_pretty_printer().
|
static |
Definition at line 429 of file scm-pretty-print.c.
References current_program_space, gdbscm_is_true, program_space::objfiles(), ofscm_objfile_smob_from_objfile(), ofscm_objfile_smob_pretty_printers(), and ppscm_search_pp_list().
Referenced by ppscm_find_pretty_printer().
|
static |
Definition at line 454 of file scm-pretty-print.c.
References current_program_space, ppscm_search_pp_list(), psscm_pspace_smob_from_pspace(), and psscm_pspace_smob_pretty_printers().
Referenced by ppscm_find_pretty_printer().
|
static |
Definition at line 592 of file scm-pretty-print.c.
References gdbscm_is_false, gdbscm_is_true, HINT_ERROR, HINT_NONE, HINT_STRING, ppscm_array_string, ppscm_get_display_hint_scm(), ppscm_map_string, and ppscm_string_string.
Referenced by gdbscm_apply_val_pretty_printer().
|
static |
Definition at line 578 of file scm-pretty-print.c.
References pretty_printer_worker_smob::display_hint.
Referenced by gdbscm_apply_val_pretty_printer(), and ppscm_get_display_hint_enum().
|
static |
Definition at line 190 of file scm-pretty-print.c.
References ppscm_is_pretty_printer(), and pretty_printer_smob_name.
Referenced by ppscm_get_pretty_printer_smob_arg_unsafe().
|
static |
Definition at line 203 of file scm-pretty-print.c.
References ppscm_get_pretty_printer_arg_unsafe().
Referenced by gdbscm_pretty_printer_enabled_p(), and gdbscm_set_pretty_printer_enabled_x().
|
static |
Definition at line 173 of file scm-pretty-print.c.
References pretty_printer_smob_tag.
Referenced by gdbscm_pretty_printer_p(), ppscm_get_pretty_printer_arg_unsafe(), and ppscm_search_pp_list().
|
static |
Definition at line 312 of file scm-pretty-print.c.
References pretty_printer_worker_smob_tag.
Referenced by gdbscm_apply_val_pretty_printer(), gdbscm_pretty_printer_worker_p(), and ppscm_search_pp_list().
|
static |
Definition at line 329 of file scm-pretty-print.c.
References gdbscm_make_error(), and pp_type_error_symbol.
Referenced by ppscm_pretty_print_one_value(), ppscm_print_pp_type_error(), and ppscm_search_pp_list().
|
static |
Definition at line 521 of file scm-pretty-print.c.
References FUNC_NAME, GDBSCM_ARG_NONE, gdbscm_is_exception(), gdbscm_is_false, gdbscm_memory_error_p, gdbscm_safe_call_1(), lsscm_is_lazy_string(), ppscm_make_pp_type_error_exception(), quit_force(), pretty_printer_worker_smob::to_string, vlscm_convert_value_from_scheme(), and vlscm_is_value().
Referenced by ppscm_print_string_repr().
|
static |
Definition at line 727 of file scm-pretty-print.c.
References value_print_options::addressprint, pretty_printer_worker_smob::children, common_val_print(), FUNC_NAME, gdb_printf(), gdb_puts(), GDBSCM_ARG_NONE, gdbscm_is_exception(), gdbscm_is_false, gdbscm_is_procedure(), gdbscm_memory_error_p, gdbscm_safe_call_1(), gdbscm_scm_to_c_string(), HINT_ARRAY, HINT_MAP, itscm_is_end_of_iteration(), itscm_is_iterator(), itscm_safe_call_next_x(), lsscm_is_lazy_string(), lsscm_val_print_lazy_string(), value_print_options::max_depth, name, ppscm_print_exception_unless_memory_error(), ppscm_print_pp_type_error(), value_print_options::prettyformat, value_print_options::prettyformat_arrays, value_print_options::prettyformat_structs, value_print_options::print_array_indexes, value_print_options::print_max, print_spaces(), value_print_options::summary, Val_prettyformat, val_print_check_max_depth(), vlscm_convert_value_from_scheme(), and ui_file::wrap_here().
Referenced by gdbscm_apply_val_pretty_printer().
|
static |
Definition at line 615 of file scm-pretty-print.c.
References gdb_printf(), gdbscm_exception_key(), gdbscm_exception_message_to_string(), gdbscm_memory_error_p, and gdbscm_print_gdb_exception().
Referenced by gdbscm_apply_val_pretty_printer(), ppscm_print_children(), and ppscm_print_string_repr().
|
static |
Definition at line 343 of file scm-pretty-print.c.
References gdbscm_print_gdb_exception(), and ppscm_make_pp_type_error_exception().
Referenced by gdbscm_apply_val_pretty_printer(), and ppscm_print_children().
|
static |
Definition at line 130 of file scm-pretty-print.c.
References pretty_printer_smob::enabled, gdbscm_is_true, gdbscm_printf(), pretty_printer_smob::name, and pretty_printer_smob_name.
Referenced by gdbscm_initialize_pretty_printers().
|
static |
Definition at line 269 of file scm-pretty-print.c.
References pretty_printer_worker_smob::children, pretty_printer_worker_smob::display_hint, gdbscm_printf(), pretty_printer_worker_smob_name, and pretty_printer_worker_smob::to_string.
Referenced by gdbscm_initialize_pretty_printers().
|
static |
strict
Definition at line 647 of file scm-pretty-print.c.
References value_print_options::addressprint, builtin_type::builtin_char, builtin_type(), common_val_print(), gdb_putc(), gdb_puts(), gdbscm_is_exception(), gdbscm_is_false, gdbscm_scm_to_string(), get(), HINT_STRING, type::length(), lsscm_is_lazy_string(), lsscm_val_print_lazy_string(), ppscm_pretty_print_one_value(), ppscm_print_exception_unless_memory_error(), STRING_REPR_ERROR, STRING_REPR_NONE, STRING_REPR_OK, and target_charset().
Referenced by gdbscm_apply_val_pretty_printer().
|
static |
Definition at line 362 of file scm-pretty-print.c.
References pretty_printer_smob::enabled, gdbscm_is_exception(), gdbscm_is_false, gdbscm_is_procedure(), gdbscm_memory_error_p, gdbscm_safe_call_2(), pretty_printer_smob::lookup, ppscm_is_pretty_printer(), ppscm_is_pretty_printer_worker(), and ppscm_make_pp_type_error_exception().
Referenced by ppscm_find_pretty_printer_from_gdb(), ppscm_find_pretty_printer_from_objfiles(), and ppscm_find_pretty_printer_from_progspace().
|
static |
Definition at line 118 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), and ppscm_make_pp_type_error_exception().
|
static |
Definition at line 122 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), and ppscm_get_display_hint_enum().
|
static |
Definition at line 121 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), and ppscm_get_display_hint_enum().
|
static |
Definition at line 123 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), and ppscm_get_display_hint_enum().
|
static |
Definition at line 1039 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers().
|
static |
Definition at line 115 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), gdbscm_pretty_printers(), gdbscm_set_pretty_printers_x(), and ppscm_find_pretty_printer_from_gdb().
|
static |
Definition at line 105 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), gdbscm_make_pretty_printer(), ppscm_get_pretty_printer_arg_unsafe(), and ppscm_print_pretty_printer_smob().
|
static |
Definition at line 111 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), gdbscm_make_pretty_printer(), and ppscm_is_pretty_printer().
|
static |
Definition at line 107 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), gdbscm_make_pretty_printer_worker(), and ppscm_print_pretty_printer_worker_smob().
|
static |
Definition at line 112 of file scm-pretty-print.c.
Referenced by gdbscm_initialize_pretty_printers(), gdbscm_make_pretty_printer_worker(), and ppscm_is_pretty_printer_worker().