GDB (xrefs)
|
#include "defs.h"
#include "objfiles.h"
#include "symtab.h"
#include "language.h"
#include "valprint.h"
#include "extension-priv.h"
#include "python.h"
#include "python-internal.h"
#include "cli/cli-style.h"
Go to the source code of this file.
Classes | |
struct | printer_object |
Enumerations | |
enum | gdbpy_string_repr_result { string_repr_none , string_repr_error , string_repr_ok } |
Variables | |
PyTypeObject | printer_object_type |
const struct value_print_options * | gdbpy_current_print_options |
Enumerator | |
---|---|
string_repr_none | |
string_repr_error | |
string_repr_ok |
Definition at line 34 of file py-prettyprint.c.
gdbpy_ref apply_varobj_pretty_printer | ( | PyObject * | printer_obj, |
struct value ** | replacement, | ||
struct ui_file * | stream, | ||
const value_print_options * | opts ) |
Definition at line 642 of file py-prettyprint.c.
References gdbpy_current_print_options, pretty_print_one_value(), and print_stack_unless_memory_error().
Referenced by varobj_value_get_print_value().
Definition at line 169 of file py-prettyprint.c.
References find_pretty_printer_from_gdb(), find_pretty_printer_from_objfiles(), and find_pretty_printer_from_progspace().
Referenced by gdbpy_apply_val_pretty_printer(), gdbpy_default_visualizer(), and gdbpy_get_varobj_pretty_printer().
Definition at line 150 of file py-prettyprint.c.
References gdb_python_module, and search_pp_list().
Referenced by find_pretty_printer().
Definition at line 100 of file py-prettyprint.c.
References current_program_space, objfile_to_objfile_object(), program_space::objfiles(), objfpy_get_printers(), and search_pp_list().
Referenced by find_pretty_printer().
Definition at line 133 of file py-prettyprint.c.
References current_program_space, pspace_to_pspace_object(), pspy_get_printers(), and search_pp_list().
Referenced by find_pretty_printer().
enum ext_lang_rc gdbpy_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 573 of file py-prettyprint.c.
References type::arch(), value::bytes_available(), EXT_LANG_RC_ERROR, EXT_LANG_RC_NOP, EXT_LANG_RC_OK, value::fetch_lazy(), find_pretty_printer(), gdb_python_initialized, gdbpy_current_print_options, gdbpy_get_display_hint(), value::lazy(), type::length(), print_children(), print_stack_unless_memory_error(), print_string_repr(), string_repr_error, string_repr_none, value::type(), and value_to_value_object().
Definition at line 678 of file py-prettyprint.c.
References find_pretty_printer(), value, and value_object_to_value().
gdb::unique_xmalloc_ptr< char > gdbpy_get_display_hint | ( | PyObject * | printer | ) |
Definition at line 234 of file py-prettyprint.c.
References gdbpy_display_hint_cst, gdbpy_is_string(), gdbpy_print_stack(), and python_string_to_host_string().
Referenced by gdbpy_apply_val_pretty_printer(), varobj_get_display_hint(), and varobj_value_get_print_value().
void gdbpy_get_print_options | ( | value_print_options * | opts | ) |
Definition at line 777 of file py-prettyprint.c.
References gdbpy_current_print_options, and get_user_print_options().
Referenced by gdbpy_print_options(), valpy_format_string(), and valpy_str().
Definition at line 664 of file py-prettyprint.c.
References find_pretty_printer(), and value_to_value_object().
GDBPY_INITIALIZE_FILE | ( | gdbpy_initialize_prettyprint | ) |
|
static |
Definition at line 838 of file py-prettyprint.c.
References gdb_module, gdb_pymodule_addobject(), and printer_object_type.
Definition at line 718 of file py-prettyprint.c.
References gdbpy_get_print_options(), host_string_to_python_string(), set_boolean(), and set_unsigned().
Definition at line 195 of file py-prettyprint.c.
References convert_value_from_python(), gdbpy_is_lazy_string(), gdbpy_is_string(), and gdbpy_to_string_cst.
Referenced by apply_varobj_pretty_printer(), and print_string_repr().
|
static |
Definition at line 359 of file py-prettyprint.c.
References value_print_options::addressprint, common_val_print(), convert_value_from_python(), gdb_printf(), gdb_puts(), gdb_stderr, gdbpy_children_cst, gdbpy_extract_lazy_string(), gdbpy_is_lazy_string(), gdbpy_is_string(), gdbpy_print_python_errors_p(), gdbpy_print_stack(), type::length(), value_print_options::max_depth, name, 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(), print_stack_unless_memory_error(), python_string_to_host_string(), value_print_options::summary, type, Val_prettyformat, val_print_check_max_depth(), val_print_string(), and ui_file::wrap_here().
Referenced by gdbpy_apply_val_pretty_printer().
|
static |
Definition at line 261 of file py-prettyprint.c.
References fprintf_styled(), gdbpy_gdb_memory_error, gdbpy_print_stack(), metadata_style, cli_style_option::style(), and gdbpy_err_fetch::to_string().
Referenced by apply_varobj_pretty_printer(), gdbpy_apply_val_pretty_printer(), print_children(), and print_string_repr().
|
static |
Definition at line 283 of file py-prettyprint.c.
References value_print_options::addressprint, builtin_type::builtin_char, builtin_type(), common_val_print(), gdb_puts(), gdbpy_extract_lazy_string(), gdbpy_is_lazy_string(), get(), type::length(), pretty_print_one_value(), print_stack_unless_memory_error(), python_string_to_target_python_string(), string_repr_error, string_repr_none, string_repr_ok, type, and val_print_string().
Referenced by gdbpy_apply_val_pretty_printer().
Definition at line 55 of file py-prettyprint.c.
References gdbpy_enabled_cst.
Referenced by find_pretty_printer_from_gdb(), find_pretty_printer_from_objfiles(), and find_pretty_printer_from_progspace().
|
static |
Definition at line 698 of file py-prettyprint.c.
References name.
Referenced by gdbpy_print_options().
|
static |
Definition at line 708 of file py-prettyprint.c.
References gdb_py_object_from_ulongest(), and name.
Referenced by gdbpy_print_options().
const struct value_print_options* gdbpy_current_print_options |
Definition at line 46 of file py-prettyprint.c.
Referenced by apply_varobj_pretty_printer(), gdbpy_apply_val_pretty_printer(), gdbpy_get_print_options(), py_varobj_iter::next(), and py_varobj_get_iterator().
PyTypeObject printer_object_type |
Definition at line 793 of file py-prettyprint.c.
Referenced by gdbpy_initialize_prettyprint().