GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
/tmp/gdb-13.1/gdb/ada-varobj.c File Reference
#include "defs.h"
#include "ada-lang.h"
#include "varobj.h"
#include "language.h"
#include "valprint.h"

Go to the source code of this file.

Functions

static int ada_varobj_get_number_of_children (struct value *parent_value, struct type *parent_type)
 
static void ada_varobj_decode_var (struct value **value_ptr, struct type **type_ptr)
 
static std::string ada_varobj_scalar_image (struct type *type, LONGEST val)
 
static void ada_varobj_struct_elt (struct value *parent_value, struct type *parent_type, int fieldno, struct value **child_value, struct type **child_type)
 
static void ada_varobj_ind (struct value *parent_value, struct type *parent_type, struct value **child_value, struct type **child_type)
 
static void ada_varobj_simple_array_elt (struct value *parent_value, struct type *parent_type, int elt_index, struct value **child_value, struct type **child_type)
 
static void ada_varobj_adjust_for_child_access (struct value **value, struct type **type)
 
static int ada_varobj_get_array_number_of_children (struct value *parent_value, struct type *parent_type)
 
static int ada_varobj_get_struct_number_of_children (struct value *parent_value, struct type *parent_type)
 
static int ada_varobj_get_ptr_number_of_children (struct value *parent_value, struct type *parent_type)
 
static void ada_varobj_describe_child (struct value *parent_value, struct type *parent_type, const char *parent_name, const char *parent_path_expr, int child_index, std::string *child_name, struct value **child_value, struct type **child_type, std::string *child_path_expr)
 
static void ada_varobj_describe_struct_child (struct value *parent_value, struct type *parent_type, const char *parent_name, const char *parent_path_expr, int child_index, std::string *child_name, struct value **child_value, struct type **child_type, std::string *child_path_expr)
 
static void ada_varobj_describe_ptr_child (struct value *parent_value, struct type *parent_type, const char *parent_name, const char *parent_path_expr, int child_index, std::string *child_name, struct value **child_value, struct type **child_type, std::string *child_path_expr)
 
static void ada_varobj_describe_simple_array_child (struct value *parent_value, struct type *parent_type, const char *parent_name, const char *parent_path_expr, int child_index, std::string *child_name, struct value **child_value, struct type **child_type, std::string *child_path_expr)
 
static std::string ada_varobj_get_name_of_child (struct value *parent_value, struct type *parent_type, const char *parent_name, int child_index)
 
static std::string ada_varobj_get_path_expr_of_child (struct value *parent_value, struct type *parent_type, const char *parent_name, const char *parent_path_expr, int child_index)
 
static struct valueada_varobj_get_value_of_child (struct value *parent_value, struct type *parent_type, const char *parent_name, int child_index)
 
static struct typeada_varobj_get_type_of_child (struct value *parent_value, struct type *parent_type, int child_index)
 
static std::string ada_varobj_get_value_image (struct value *value, struct value_print_options *opts)
 
static std::string ada_varobj_get_value_of_array_variable (struct value *value, struct type *type, struct value_print_options *opts)
 
static std::string ada_varobj_get_value_of_variable (struct value *value, struct type *type, struct value_print_options *opts)
 
static int ada_number_of_children (const struct varobj *var)
 
static std::string ada_name_of_variable (const struct varobj *parent)
 
static std::string ada_name_of_child (const struct varobj *parent, int index)
 
static std::string ada_path_expr_of_child (const struct varobj *child)
 
static struct valueada_value_of_child (const struct varobj *parent, int index)
 
static struct typeada_type_of_child (const struct varobj *parent, int index)
 
static std::string ada_value_of_variable (const struct varobj *var, enum varobj_display_formats format)
 
static bool ada_value_is_changeable_p (const struct varobj *var)
 
static bool ada_value_has_mutated (const struct varobj *var, struct value *new_val, struct type *new_type)
 

Variables

const struct lang_varobj_ops ada_varobj_ops
 

Function Documentation

◆ ada_name_of_child()

static std::string ada_name_of_child ( const struct varobj parent,
int  index 
)
static

◆ ada_name_of_variable()

static std::string ada_name_of_variable ( const struct varobj parent)
static

Definition at line 889 of file ada-varobj.c.

References c_varobj_ops, and lang_varobj_ops::name_of_variable.

◆ ada_number_of_children()

static int ada_number_of_children ( const struct varobj var)
static

Definition at line 883 of file ada-varobj.c.

References ada_varobj_get_number_of_children(), varobj::type, and varobj::value.

◆ ada_path_expr_of_child()

static std::string ada_path_expr_of_child ( const struct varobj child)
static

◆ ada_type_of_child()

static struct type * ada_type_of_child ( const struct varobj parent,
int  index 
)
static

Definition at line 922 of file ada-varobj.c.

References ada_varobj_get_type_of_child(), varobj::type, and varobj::value.

◆ ada_value_has_mutated()

static bool ada_value_has_mutated ( const struct varobj var,
struct value new_val,
struct type new_type 
)
static

◆ ada_value_is_changeable_p()

static bool ada_value_is_changeable_p ( const struct varobj var)
static

◆ ada_value_of_child()

static struct value * ada_value_of_child ( const struct varobj parent,
int  index 
)
static

Definition at line 915 of file ada-varobj.c.

References ada_varobj_get_value_of_child(), and value::parent.

◆ ada_value_of_variable()

static std::string ada_value_of_variable ( const struct varobj var,
enum varobj_display_formats  format 
)
static

◆ ada_varobj_adjust_for_child_access()

static void ada_varobj_adjust_for_child_access ( struct value **  value,
struct type **  type 
)
static

◆ ada_varobj_decode_var()

static void ada_varobj_decode_var ( struct value **  value_ptr,
struct type **  type_ptr 
)
static

◆ ada_varobj_describe_child()

static void ada_varobj_describe_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
const char *  parent_path_expr,
int  child_index,
std::string *  child_name,
struct value **  child_value,
struct type **  child_type,
std::string *  child_path_expr 
)
static

◆ ada_varobj_describe_ptr_child()

static void ada_varobj_describe_ptr_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
const char *  parent_path_expr,
int  child_index,
std::string *  child_name,
struct value **  child_value,
struct type **  child_type,
std::string *  child_path_expr 
)
static

Definition at line 553 of file ada-varobj.c.

References ada_varobj_ind().

Referenced by ada_varobj_describe_child().

◆ ada_varobj_describe_simple_array_child()

static void ada_varobj_describe_simple_array_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
const char *  parent_path_expr,
int  child_index,
std::string *  child_name,
struct value **  child_value,
struct type **  child_type,
std::string *  child_path_expr 
)
static

◆ ada_varobj_describe_struct_child()

static void ada_varobj_describe_struct_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
const char *  parent_path_expr,
int  child_index,
std::string *  child_name,
struct value **  child_value,
struct type **  child_type,
std::string *  child_path_expr 
)
static

◆ ada_varobj_get_array_number_of_children()

static int ada_varobj_get_array_number_of_children ( struct value parent_value,
struct type parent_type 
)
static

◆ ada_varobj_get_name_of_child()

static std::string ada_varobj_get_name_of_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
int  child_index 
)
static

Definition at line 742 of file ada-varobj.c.

References ada_varobj_describe_child().

Referenced by ada_name_of_child(), and ada_value_has_mutated().

◆ ada_varobj_get_number_of_children()

static int ada_varobj_get_number_of_children ( struct value parent_value,
struct type parent_type 
)
static

◆ ada_varobj_get_path_expr_of_child()

static std::string ada_varobj_get_path_expr_of_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
const char *  parent_path_expr,
int  child_index 
)
static

Definition at line 760 of file ada-varobj.c.

References ada_varobj_describe_child().

Referenced by ada_path_expr_of_child().

◆ ada_varobj_get_ptr_number_of_children()

static int ada_varobj_get_ptr_number_of_children ( struct value parent_value,
struct type parent_type 
)
static

Definition at line 327 of file ada-varobj.c.

References type::code(), type::target_type(), and value_as_address().

Referenced by ada_varobj_get_number_of_children().

◆ ada_varobj_get_struct_number_of_children()

static int ada_varobj_get_struct_number_of_children ( struct value parent_value,
struct type parent_type 
)
static

◆ ada_varobj_get_type_of_child()

static struct type * ada_varobj_get_type_of_child ( struct value parent_value,
struct type parent_type,
int  child_index 
)
static

Definition at line 796 of file ada-varobj.c.

References ada_varobj_describe_child().

Referenced by ada_type_of_child().

◆ ada_varobj_get_value_image()

static std::string ada_varobj_get_value_image ( struct value value,
struct value_print_options opts 
)
static

◆ ada_varobj_get_value_of_array_variable()

static std::string ada_varobj_get_value_of_array_variable ( struct value value,
struct type type,
struct value_print_options opts 
)
static

◆ ada_varobj_get_value_of_child()

static struct value * ada_varobj_get_value_of_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
int  child_index 
)
static

Definition at line 779 of file ada-varobj.c.

References ada_varobj_describe_child().

Referenced by ada_value_of_child().

◆ ada_varobj_get_value_of_variable()

static std::string ada_varobj_get_value_of_variable ( struct value value,
struct type type,
struct value_print_options opts 
)
static

◆ ada_varobj_ind()

static void ada_varobj_ind ( struct value parent_value,
struct type parent_type,
struct value **  child_value,
struct type **  child_type 
)
static

◆ ada_varobj_scalar_image()

static std::string ada_varobj_scalar_image ( struct type type,
LONGEST  val 
)
static

Definition at line 80 of file ada-varobj.c.

References ada_print_scalar(), and string_file::release().

Referenced by ada_varobj_describe_simple_array_child().

◆ ada_varobj_simple_array_elt()

static void ada_varobj_simple_array_elt ( struct value parent_value,
struct type parent_type,
int  elt_index,
struct value **  child_value,
struct type **  child_type 
)
static

◆ ada_varobj_struct_elt()

static void ada_varobj_struct_elt ( struct value parent_value,
struct type parent_type,
int  fieldno,
struct value **  child_value,
struct type **  child_type 
)
static

Variable Documentation

◆ ada_varobj_ops

const struct lang_varobj_ops ada_varobj_ops
Initial value:
=
{
}
static bool ada_value_is_changeable_p(const struct varobj *var)
Definition: ada-varobj.c:943
static struct value * ada_value_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:915
static bool ada_value_has_mutated(const struct varobj *var, struct value *new_val, struct type *new_type)
Definition: ada-varobj.c:972
static std::string ada_name_of_variable(const struct varobj *parent)
Definition: ada-varobj.c:889
static std::string ada_value_of_variable(const struct varobj *var, enum varobj_display_formats format)
Definition: ada-varobj.c:929
static int ada_number_of_children(const struct varobj *var)
Definition: ada-varobj.c:883
static struct type * ada_type_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:922
static std::string ada_path_expr_of_child(const struct varobj *child)
Definition: ada-varobj.c:902
static std::string ada_name_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:895
bool varobj_default_is_path_expr_parent(const struct varobj *var)
Definition: varobj.c:894

Definition at line 1009 of file ada-varobj.c.

Referenced by ada_language::varobj_ops().