GDB (xrefs)
|
#include "defs.h"
#include "value.h"
#include "expression.h"
#include "frame.h"
#include "language.h"
#include "gdbcmd.h"
#include "block.h"
#include "valprint.h"
#include "gdbsupport/gdb_regex.h"
#include "varobj.h"
#include "gdbthread.h"
#include "inferior.h"
#include "varobj-iter.h"
#include "parser-defs.h"
#include "gdbarch.h"
#include <algorithm>
#include "observable.h"
Go to the source code of this file.
Classes | |
struct | varobj_root |
struct | varobj_dynamic |
Typedefs | |
typedef int | PyObject |
Functions | |
static void | show_varobjdebug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
void | varobj_enable_pretty_printing (void) |
static int | delete_variable (struct varobj *, bool) |
static void | delete_variable_1 (int *, struct varobj *, bool, bool) |
static void | install_variable (struct varobj *) |
static void | uninstall_variable (struct varobj *) |
static struct varobj * | create_child (struct varobj *, int, std::string &) |
static struct varobj * | create_child_with_value (struct varobj *parent, int index, struct varobj_item *item) |
static bool | update_type_if_necessary (struct varobj *var, struct value *new_value) |
static bool | install_new_value (struct varobj *var, struct value *value, bool initial) |
static int | number_of_children (const struct varobj *) |
static std::string | name_of_variable (const struct varobj *) |
static std::string | name_of_child (struct varobj *, int) |
static struct value * | value_of_root (struct varobj **var_handle, bool *) |
static struct value * | value_of_child (const struct varobj *parent, int index) |
static std::string | my_value_of_variable (struct varobj *var, enum varobj_display_formats format) |
static bool | is_root_p (const struct varobj *var) |
static struct varobj * | varobj_add_child (struct varobj *var, struct varobj_item *item) |
static frame_info_ptr | find_frame_addr_in_frame_chain (CORE_ADDR frame_addr) |
struct varobj * | varobj_create (const char *objname, const char *expression, CORE_ADDR frame, enum varobj_type type) |
std::string | varobj_gen_name (void) |
struct varobj * | varobj_get_handle (const char *objname) |
const char * | varobj_get_objname (const struct varobj *var) |
std::string | varobj_get_expression (const struct varobj *var) |
int | varobj_delete (struct varobj *var, bool only_children) |
enum varobj_display_formats | varobj_set_display_format (struct varobj *var, enum varobj_display_formats format) |
enum varobj_display_formats | varobj_get_display_format (const struct varobj *var) |
gdb::unique_xmalloc_ptr< char > | varobj_get_display_hint (const struct varobj *var) |
bool | varobj_has_more (const struct varobj *var, int to) |
int | varobj_get_thread_id (const struct varobj *var) |
void | varobj_set_frozen (struct varobj *var, bool frozen) |
bool | varobj_get_frozen (const struct varobj *var) |
void | varobj_restrict_range (const std::vector< varobj * > &children, int *from, int *to) |
static void | install_dynamic_child (struct varobj *var, std::vector< varobj * > *changed, std::vector< varobj * > *type_changed, std::vector< varobj * > *newobj, std::vector< varobj * > *unchanged, bool *cchanged, int index, struct varobj_item *item) |
static std::unique_ptr< varobj_iter > | varobj_get_iterator (struct varobj *var) |
static bool | update_dynamic_varobj_children (struct varobj *var, std::vector< varobj * > *changed, std::vector< varobj * > *type_changed, std::vector< varobj * > *newobj, std::vector< varobj * > *unchanged, bool *cchanged, bool update_children, int from, int to) |
int | varobj_get_num_children (struct varobj *var) |
const std::vector< varobj * > & | varobj_list_children (struct varobj *var, int *from, int *to) |
std::string | varobj_get_type (struct varobj *var) |
struct type * | varobj_get_gdb_type (const struct varobj *var) |
static bool | is_path_expr_parent (const struct varobj *var) |
bool | varobj_default_is_path_expr_parent (const struct varobj *var) |
const struct varobj * | varobj_get_path_expr_parent (const struct varobj *var) |
const char * | varobj_get_path_expr (const struct varobj *var) |
const struct language_defn * | varobj_get_language (const struct varobj *var) |
int | varobj_get_attributes (const struct varobj *var) |
bool | varobj_is_dynamic_p (const struct varobj *var) |
std::string | varobj_get_formatted_value (struct varobj *var, enum varobj_display_formats format) |
std::string | varobj_get_value (struct varobj *var) |
bool | varobj_set_value (struct varobj *var, const char *expression) |
static void | install_new_value_visualizer (struct varobj *var) |
void | varobj_get_child_range (const struct varobj *var, int *from, int *to) |
void | varobj_set_child_range (struct varobj *var, int from, int to) |
void | varobj_set_visualizer (struct varobj *var, const char *visualizer) |
static bool | varobj_value_has_mutated (const struct varobj *var, struct value *new_value, struct type *new_type) |
std::vector< varobj_update_result > | varobj_update (struct varobj **varp, bool is_explicit) |
struct type * | varobj_get_value_type (const struct varobj *var) |
static bool | check_scope (const struct varobj *var) |
static struct value * | value_of_root_1 (struct varobj **var_handle) |
void | varobj_formatted_print_options (struct value_print_options *opts, enum varobj_display_formats format) |
std::string | varobj_value_get_print_value (struct value *value, enum varobj_display_formats format, const struct varobj *var) |
bool | varobj_editable_p (const struct varobj *var) |
bool | varobj_value_is_changeable_p (const struct varobj *var) |
bool | varobj_floating_p (const struct varobj *var) |
bool | varobj_default_value_is_changeable_p (const struct varobj *var) |
void | all_root_varobjs (gdb::function_view< void(struct varobj *var)> func) |
static void | varobj_re_set_iter (struct varobj *var) |
void | varobj_re_set (void) |
static void | varobj_invalidate_if_uses_objfile (struct objfile *objfile) |
static hashval_t | hash_varobj (const void *a) |
static int | eq_varobj_and_string (const void *a, const void *b) |
void | _initialize_varobj () |
Variables | |
unsigned int | varobjdebug = 0 |
const char * | varobj_format_string [] |
static bool | pretty_printing = false |
static int | format_code [] = { 0, 't', 'd', 'x', 'o', 'z' } |
static std::list< struct varobj_root * > | rootlist |
static htab_t | varobj_table |
void _initialize_varobj | ( | ) |
Definition at line 2433 of file varobj.c.
Referenced by initialize_all_files().
void all_root_varobjs | ( | gdb::function_view< void(struct varobj *var)> | func | ) |
Definition at line 2319 of file varobj.c.
References func, and rootlist.
Referenced by mi_cmd_var_update(), preserve_values(), varobj_invalidate_if_uses_objfile(), and varobj_re_set().
|
static |
Definition at line 1912 of file varobj.c.
References block::end(), varobj_root::frame, frame_find_by_id(), get_frame_pc(), varobj::root, select_frame(), and varobj_root::valid_block.
Referenced by value_of_root_1().
|
static |
Definition at line 1763 of file varobj.c.
References create_child_with_value(), name, varobj_item::name, release_value(), varobj_item::value, and value_of_child().
Referenced by varobj_list_children().
|
static |
Definition at line 1774 of file varobj.c.
References varobj::index, install_new_value(), install_variable(), varobj_root::lang_ops, varobj_item::name, varobj::name, varobj::obj_name, varobj::parent, varobj::root, varobj::type, lang_varobj_ops::type_of_child, varobj_item::value, value_actual_type(), varobj::varobj(), and varobj_is_anonymous_child().
Referenced by create_child(), and varobj_add_child().
|
static |
Definition at line 1663 of file varobj.c.
References delete_variable_1().
Referenced by varobj_delete().
|
static |
Definition at line 1678 of file varobj.c.
References varobj::children, delete_variable_1(), varobj::index, varobj::obj_name, varobj::parent, and uninstall_variable().
Referenced by delete_variable(), and delete_variable_1().
|
static |
Definition at line 2423 of file varobj.c.
References name, and varobj::obj_name.
|
static |
Definition at line 227 of file varobj.c.
References gdbarch_addr_bit(), get_current_frame(), get_frame_arch(), get_frame_base_address(), and get_prev_frame().
Referenced by varobj_create().
|
static |
Definition at line 2414 of file varobj.c.
References varobj::obj_name.
|
static |
Definition at line 599 of file varobj.c.
References varobj::children, varobj::index, install_new_value(), update_type_if_necessary(), varobj_item::value, and varobj_add_child().
Referenced by update_dynamic_varobj_children().
Definition at line 1176 of file varobj.c.
References type::code(), coerce_ref(), CPLUS_FAKE_CHILD, varobj::dynamic, value::fetch_lazy(), varobj::format, varobj::frozen, install_new_value_visualizer(), value::lazy(), varobj::not_fetched, varobj::parent, varobj_dynamic::pretty_printer, print_value(), varobj::print_value, varobj::type, varobj::updated, varobj::value, varobj_value_get_print_value(), and varobj_value_is_changeable_p().
Referenced by create_child_with_value(), install_dynamic_child(), varobj_create(), varobj_set_value(), and varobj_update().
|
static |
Definition at line 1104 of file varobj.c.
References varobj_dynamic::constructor, varobj::dynamic, gdb_python_initialized, and varobj::value.
Referenced by install_new_value().
|
static |
Definition at line 1723 of file varobj.c.
References is_root_p(), varobj::obj_name, varobj::root, rootlist, and varobj_table.
Referenced by create_child_with_value(), value_of_root(), varobj_create(), and varobj_re_set_iter().
|
static |
Definition at line 853 of file varobj.c.
References lang_varobj_ops::is_path_expr_parent, varobj_root::lang_ops, and varobj::root.
Referenced by varobj_get_path_expr_parent().
|
static |
Definition at line 208 of file varobj.c.
References varobj::root, and varobj_root::rootvar.
Referenced by install_variable(), uninstall_variable(), value_of_root(), value_of_root_1(), varobj_get_path_expr(), varobj_get_path_expr_parent(), and varobj::~varobj().
|
static |
Definition at line 2093 of file varobj.c.
References varobj::dynamic, varobj::format, varobj_root::is_valid, varobj_root::lang_ops, varobj::parent, varobj_dynamic::pretty_printer, varobj::print_value, varobj::root, varobj::value, lang_varobj_ops::value_of_variable, varobj_is_dynamic_p(), and varobj_value_get_print_value().
Referenced by varobj_get_formatted_value(), and varobj_get_value().
|
static |
Definition at line 1903 of file varobj.c.
References varobj_root::lang_ops, lang_varobj_ops::name_of_child, and varobj::root.
Referenced by varobj_list_children().
|
static |
Definition at line 1895 of file varobj.c.
References varobj_root::lang_ops, lang_varobj_ops::name_of_variable, and varobj::root.
Referenced by varobj_get_expression().
|
static |
Definition at line 1887 of file varobj.c.
References varobj_root::lang_ops, lang_varobj_ops::number_of_children, and varobj::root.
Referenced by varobj_get_num_children(), and varobj_list_children().
|
static |
Definition at line 48 of file varobj.c.
References gdb_printf().
|
static |
Definition at line 1742 of file varobj.c.
References gdb_printf(), gdb_stdlog, is_root_p(), varobj::obj_name, varobj::root, rootlist, varobj_table, and varobjdebug.
Referenced by delete_variable_1().
|
static |
Definition at line 659 of file varobj.c.
References varobj_dynamic::child_iter, varobj::children, varobj::dynamic, varobj::from, install_dynamic_child(), varobj::num_children, varobj_dynamic::saved_item, varobj::to, varobj_delete(), and varobj_get_iterator().
Referenced by varobj_get_num_children(), varobj_list_children(), and varobj_update().
Definition at line 1132 of file varobj.c.
References varobj::children, get_user_print_options(), new_type(), varobj::num_children, varobj::type, type_to_string(), value_actual_type(), varobj_delete(), and varobj_get_type().
Referenced by install_dynamic_child(), and varobj_update().
Definition at line 2082 of file varobj.c.
References value::parent(), and value.
Referenced by create_child(), and varobj_update().
Definition at line 1998 of file varobj.c.
References varobj_root::exp, varobj_root::floating, varobj::from, install_variable(), is_root_p(), varobj::name, new_type(), varobj::num_children, varobj::obj_name, varobj::root, varobj::to, value::type(), USE_SELECTED_FRAME, value, varobj::value, value_of_root_1(), varobj_create(), varobj_delete(), varobj_get_type(), and varobj_value_has_mutated().
Referenced by varobj_update().
Definition at line 1936 of file varobj.c.
References check_scope(), varobj_root::exp, find_thread_global_id(), varobj_root::floating, is_root_p(), varobj::root, switch_to_thread(), varobj_root::thread_id, and varobj_root::valid_block.
Referenced by value_of_root().
|
static |
Definition at line 816 of file varobj.c.
References varobj::children, and create_child_with_value().
Referenced by install_dynamic_child().
struct varobj * varobj_create | ( | const char * | objname, |
const char * | expression, | ||
CORE_ADDR | frame, | ||
enum varobj_type | type ) |
Definition at line 258 of file varobj.c.
References innermost_block_tracker::block(), find_frame_addr_in_frame_chain(), FORMAT_NATURAL, frame_find_by_id(), frame_id_p(), gdb_printf(), gdb_stderr, get_frame_block(), get_frame_id(), get_frame_pc(), get_selected_frame(), thread_info::global_num, has_stack_frames(), inferior_thread(), INNERMOST_BLOCK_FOR_REGISTERS, INNERMOST_BLOCK_FOR_SYMBOLS, install_new_value(), install_variable(), null_frame_id, parse_exp_1(), select_frame(), value::type(), USE_CURRENT_FRAME, USE_SELECTED_FRAME, value_actual_type(), and value_cast().
Referenced by mi_cmd_var_create(), value_of_root(), and varobj_re_set_iter().
bool varobj_default_is_path_expr_parent | ( | const struct varobj * | var | ) |
bool varobj_default_value_is_changeable_p | ( | const struct varobj * | var | ) |
Definition at line 2290 of file varobj.c.
References type::code(), CPLUS_FAKE_CHILD, type, and varobj_get_value_type().
Referenced by ada_value_is_changeable_p().
int varobj_delete | ( | struct varobj * | var, |
bool | only_children ) |
Definition at line 462 of file varobj.c.
References delete_variable().
Referenced by mi_cmd_var_delete(), update_dynamic_varobj_children(), update_type_if_necessary(), value_of_root(), varobj_re_set_iter(), varobj_set_visualizer(), and varobj_update().
bool varobj_editable_p | ( | const struct varobj * | var | ) |
Definition at line 2243 of file varobj.c.
References type::code(), varobj_root::is_valid, varobj::root, type, varobj::value, and varobj_get_value_type().
Referenced by mi_cmd_var_assign(), varobj_get_attributes(), and varobj_set_value().
void varobj_enable_pretty_printing | ( | void | ) |
Definition at line 62 of file varobj.c.
References pretty_printing.
Referenced by mi_cmd_enable_pretty_printing().
bool varobj_floating_p | ( | const struct varobj * | var | ) |
Definition at line 2281 of file varobj.c.
References varobj_root::floating, and varobj::root.
Referenced by mi_cmd_var_update_iter().
void varobj_formatted_print_options | ( | struct value_print_options * | opts, |
enum varobj_display_formats | format ) |
Definition at line 2110 of file varobj.c.
References format_code, get_formatted_print_options(), and pretty_printing.
Referenced by ada_value_of_variable(), varobj_get_iterator(), and varobj_value_get_print_value().
std::string varobj_gen_name | ( | void | ) |
Definition at line 418 of file varobj.c.
Referenced by mi_cmd_var_create().
int varobj_get_attributes | ( | const struct varobj * | var | ) |
Definition at line 914 of file varobj.c.
References attributes, and varobj_editable_p().
Referenced by mi_cmd_var_show_attributes().
void varobj_get_child_range | ( | const struct varobj * | var, |
int * | from, | ||
int * | to ) |
Definition at line 1352 of file varobj.c.
References varobj::from, and varobj::to.
Referenced by varobj_update_one().
enum varobj_display_formats varobj_get_display_format | ( | const struct varobj * | var | ) |
Definition at line 502 of file varobj.c.
References varobj::format.
Referenced by mi_cmd_var_show_format().
gdb::unique_xmalloc_ptr< char > varobj_get_display_hint | ( | const struct varobj * | var | ) |
Definition at line 508 of file varobj.c.
References varobj::dynamic, gdb_python_initialized, gdbpy_get_display_hint(), and varobj_dynamic::pretty_printer.
Referenced by mi_cmd_var_list_children(), print_varobj(), and varobj_update_one().
std::string varobj_get_expression | ( | const struct varobj * | var | ) |
Definition at line 454 of file varobj.c.
References name_of_variable().
Referenced by mi_cmd_var_info_expression(), and print_varobj().
std::string varobj_get_formatted_value | ( | struct varobj * | var, |
enum varobj_display_formats | format ) |
Definition at line 934 of file varobj.c.
References my_value_of_variable().
Referenced by mi_cmd_var_evaluate_expression().
bool varobj_get_frozen | ( | const struct varobj * | var | ) |
Definition at line 844 of file varobj.c.
References varobj::type.
Referenced by c_is_path_expr_parent(), and mi_print_value_p().
struct varobj * varobj_get_handle | ( | const char * | objname | ) |
Definition at line 431 of file varobj.c.
References varobj_table.
Referenced by mi_cmd_var_assign(), mi_cmd_var_delete(), mi_cmd_var_evaluate_expression(), mi_cmd_var_info_expression(), mi_cmd_var_info_num_children(), mi_cmd_var_info_path_expression(), mi_cmd_var_info_type(), mi_cmd_var_list_children(), mi_cmd_var_set_format(), mi_cmd_var_set_frozen(), mi_cmd_var_set_update_range(), mi_cmd_var_set_visualizer(), mi_cmd_var_show_attributes(), mi_cmd_var_show_format(), and mi_cmd_var_update().
|
static |
Definition at line 644 of file varobj.c.
References varobj::dynamic, varobj::format, varobj_dynamic::pretty_printer, py_varobj_get_iterator(), and varobj_formatted_print_options().
Referenced by update_dynamic_varobj_children().
const struct language_defn * varobj_get_language | ( | const struct varobj * | var | ) |
Definition at line 908 of file varobj.c.
References varobj_root::exp, and varobj::root.
Referenced by mi_cmd_var_info_expression().
int varobj_get_num_children | ( | struct varobj * | var | ) |
Definition at line 746 of file varobj.c.
References dummy, varobj::num_children, number_of_children(), update_dynamic_varobj_children(), and varobj_is_dynamic_p().
Referenced by mi_cmd_var_info_num_children(), print_varobj(), and varobj_update_one().
const char * varobj_get_objname | ( | const struct varobj * | var | ) |
Definition at line 445 of file varobj.c.
References varobj::obj_name.
Referenced by print_varobj(), and varobj_update_one().
const char * varobj_get_path_expr | ( | const struct varobj * | var | ) |
Definition at line 891 of file varobj.c.
References is_root_p(), varobj_root::lang_ops, varobj::path_expr, lang_varobj_ops::path_expr_of_child, and varobj::root.
Referenced by ada_path_expr_of_child(), c_describe_child(), cplus_describe_child(), and mi_cmd_var_info_path_expression().
Definition at line 872 of file varobj.c.
References is_path_expr_parent(), is_root_p(), varobj::parent, and varobj_is_dynamic_p().
Referenced by c_describe_child(), and cplus_describe_child().
int varobj_get_thread_id | ( | const struct varobj * | var | ) |
Definition at line 542 of file varobj.c.
References varobj::root, varobj_root::thread_id, and varobj_root::valid_block.
Referenced by mi_cmd_var_update_iter(), and print_varobj().
std::string varobj_get_type | ( | struct varobj * | var | ) |
Definition at line 830 of file varobj.c.
References CPLUS_FAKE_CHILD, varobj_root::is_valid, varobj::root, varobj::type, and type_to_string().
Referenced by mi_cmd_var_info_type(), print_varobj(), update_type_if_necessary(), value_of_root(), and varobj_update_one().
std::string varobj_get_value | ( | struct varobj * | var | ) |
Definition at line 941 of file varobj.c.
References varobj::format, and my_value_of_variable().
Referenced by mi_cmd_var_assign(), mi_cmd_var_evaluate_expression(), mi_cmd_var_set_format(), print_varobj(), and varobj_update_one().
Definition at line 1856 of file varobj.c.
References check_typedef(), get_target_type(), type, varobj::type, TYPE_IS_REFERENCE, and varobj::value.
Referenced by c_describe_child(), c_is_path_expr_parent(), c_number_of_children(), cplus_describe_child(), cplus_number_of_children(), varobj_default_value_is_changeable_p(), and varobj_editable_p().
bool varobj_has_more | ( | const struct varobj * | var, |
int | to ) |
Definition at line 528 of file varobj.c.
References varobj::children, varobj::dynamic, varobj_dynamic::saved_item, and varobj::to.
Referenced by mi_cmd_var_create(), mi_cmd_var_list_children(), varobj_update(), and varobj_update_one().
|
static |
Definition at line 2366 of file varobj.c.
References all_root_varobjs(), varobj_root::exp, varobj::root, objfile::separate_debug_objfile_backlink, and varobj_root::valid_block.
bool varobj_is_dynamic_p | ( | const struct varobj * | var | ) |
Definition at line 928 of file varobj.c.
References varobj::dynamic, and varobj_dynamic::pretty_printer.
Referenced by mi_print_value_p(), my_value_of_variable(), print_varobj(), varobj_get_num_children(), varobj_get_path_expr_parent(), varobj_list_children(), varobj_update(), and varobj_update_one().
Definition at line 770 of file varobj.c.
References varobj::children, varobj_dynamic::children_requested, create_child(), varobj::dynamic, varobj::from, name, name_of_child(), varobj::num_children, number_of_children(), varobj::to, update_dynamic_varobj_children(), varobj_is_dynamic_p(), and varobj_restrict_range().
Referenced by mi_cmd_var_list_children().
void varobj_re_set | ( | void | ) |
Definition at line 2358 of file varobj.c.
References all_root_varobjs(), and varobj_re_set_iter().
Referenced by symbol_file_command().
|
static |
Definition at line 2335 of file varobj.c.
References varobj_root::global, install_variable(), varobj_root::is_valid, varobj::name, varobj::obj_name, varobj::root, USE_CURRENT_FRAME, varobj_create(), and varobj_delete().
Referenced by varobj_re_set().
void varobj_restrict_range | ( | const std::vector< varobj * > & | children, |
int * | from, | ||
int * | to ) |
Definition at line 574 of file varobj.c.
References varobj::children, varobj::from, and varobj::to.
Referenced by ada_value_has_mutated(), and varobj_list_children().
void varobj_set_child_range | ( | struct varobj * | var, |
int | from, | ||
int | to ) |
Definition at line 1362 of file varobj.c.
References varobj::from, and varobj::to.
Referenced by mi_cmd_var_set_update_range().
enum varobj_display_formats varobj_set_display_format | ( | struct varobj * | var, |
enum varobj_display_formats | format ) |
Definition at line 486 of file varobj.c.
References varobj::format, varobj::print_value, varobj::value, varobj_value_get_print_value(), and varobj_value_is_changeable_p().
Referenced by mi_cmd_var_set_format(), and varobj_set_visualizer().
void varobj_set_frozen | ( | struct varobj * | var, |
bool | frozen ) |
Definition at line 551 of file varobj.c.
References varobj::frozen.
Referenced by mi_cmd_var_set_frozen().
bool varobj_set_value | ( | struct varobj * | var, |
const char * | expression ) |
Definition at line 951 of file varobj.c.
References coerce_array(), input_radix, install_new_value(), parse_exp_1(), varobj::updated, varobj::value, value_assign(), varobj_editable_p(), and varobj_value_is_changeable_p().
Referenced by mi_cmd_var_assign().
void varobj_set_visualizer | ( | struct varobj * | var, |
const char * | visualizer ) |
Definition at line 1369 of file varobj.c.
References varobj::format, gdb_python_initialized, gdbpy_print_stack(), varobj::num_children, varobj_delete(), and varobj_set_display_format().
Referenced by mi_cmd_var_set_visualizer().
std::vector< varobj_update_result > varobj_update | ( | struct varobj ** | varp, |
bool | is_explicit ) |
Definition at line 1453 of file varobj.c.
References varobj_update_result::changed, varobj::children, varobj_update_result::children_changed, varobj_dynamic::children_requested, dummy, varobj::dynamic, varobj::from, varobj::frozen, varobj::index, install_new_value(), varobj_root::lang_ops, new_type(), varobj_update_result::newobj, varobj::num_children, varobj::parent, varobj::root, value::stack(), varobj_update_result::status, varobj::to, value::type(), varobj::type, varobj_update_result::type_changed, lang_varobj_ops::type_of_child, update_dynamic_varobj_children(), update_type_if_necessary(), varobj::updated, varobj_update_result::value_installed, value_of_child(), value_of_root(), varobj_update_result::varobj, varobj_delete(), varobj_has_more(), VAROBJ_INVALID, varobj_is_dynamic_p(), VAROBJ_NOT_IN_SCOPE, and varobj_value_has_mutated().
Referenced by varobj_update_one().
std::string varobj_value_get_print_value | ( | struct value * | value, |
enum varobj_display_formats | format, | ||
const struct varobj * | var ) |
Definition at line 2119 of file varobj.c.
References apply_varobj_pretty_printer(), type::arch(), builtin_type::builtin_char, builtin_type(), common_val_print(), current_language, varobj::dynamic, gdb_python_initialized, gdbpy_children_cst, gdbpy_extract_lazy_string(), gdbpy_get_display_hint(), gdbpy_is_lazy_string(), gdbpy_print_stack(), gdbpy_to_string_cst, varobj_dynamic::pretty_printer, language_defn::printstr(), python_string_to_target_string(), string_file::release(), value::type(), val_print_string(), and varobj_formatted_print_options().
Referenced by c_value_of_variable(), install_new_value(), my_value_of_variable(), and varobj_set_display_format().
|
static |
Definition at line 1412 of file varobj.c.
References coerce_ref(), varobj_root::lang_ops, new_type(), varobj::num_children, varobj::root, and lang_varobj_ops::value_has_mutated.
Referenced by value_of_root(), and varobj_update().
bool varobj_value_is_changeable_p | ( | const struct varobj * | var | ) |
Definition at line 2272 of file varobj.c.
References varobj_root::lang_ops, varobj::root, and lang_varobj_ops::value_is_changeable_p.
Referenced by c_value_of_variable(), install_new_value(), varobj_set_display_format(), and varobj_set_value().
|
static |
Definition at line 196 of file varobj.c.
Referenced by varobj_formatted_print_options().
|
static |
Definition at line 59 of file varobj.c.
Referenced by varobj_enable_pretty_printing(), and varobj_formatted_print_options().
|
static |
Definition at line 199 of file varobj.c.
Referenced by all_root_varobjs(), install_variable(), and uninstall_variable().
const char* varobj_format_string[] |
Definition at line 55 of file varobj.c.
Referenced by mi_cmd_var_set_format(), and mi_cmd_var_show_format().
|
static |
Definition at line 202 of file varobj.c.
Referenced by install_variable(), uninstall_variable(), and varobj_get_handle().
unsigned int varobjdebug = 0 |
Definition at line 46 of file varobj.c.
Referenced by mi_cmd_var_create(), and uninstall_variable().