GDB (xrefs)
Functions | Variables
/tmp/gdb-8.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 879 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 873 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 912 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 905 of file ada-varobj.c.

References ada_varobj_get_value_of_child(), value::parent, and value::type.

◆ 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 547 of file ada-varobj.c.

References ada_varobj_ind(), and string_printf().

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 732 of file ada-varobj.c.

References ada_varobj_describe_child(), and string.

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 750 of file ada-varobj.c.

References ada_varobj_describe_child(), and string.

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 325 of file ada-varobj.c.

References TYPE_CODE, TYPE_CODE_FUNC, TYPE_CODE_VOID, and TYPE_TARGET_TYPE.

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 786 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 769 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::string().

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 std::string ada_name_of_variable(const struct varobj *parent)
Definition: ada-varobj.c:879
static std::string ada_name_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:885
static struct value * ada_value_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:905
static std::string ada_path_expr_of_child(const struct varobj *child)
Definition: ada-varobj.c:892
static bool ada_value_has_mutated(const struct varobj *var, struct value *new_val, struct type *new_type)
Definition: ada-varobj.c:958
static std::string ada_value_of_variable(const struct varobj *var, enum varobj_display_formats format)
Definition: ada-varobj.c:919
static struct type * ada_type_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:912
static int ada_number_of_children(const struct varobj *var)
Definition: ada-varobj.c:873
bool varobj_default_is_path_expr_parent(const struct varobj *var)
Definition: varobj.c:934
static bool ada_value_is_changeable_p(const struct varobj *var)
Definition: ada-varobj.c:932

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