GDB (xrefs)
Functions | Variables
/tmp/gdb-7.10/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 char * 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, char **child_name, struct value **child_value, struct type **child_type, char **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, char **child_name, struct value **child_value, struct type **child_type, char **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, char **child_name, struct value **child_value, struct type **child_type, char **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, char **child_name, struct value **child_value, struct type **child_type, char **child_path_expr)
 
static char * ada_varobj_get_name_of_child (struct value *parent_value, struct type *parent_type, const char *parent_name, int child_index)
 
static char * 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 char * ada_varobj_get_value_image (struct value *value, struct value_print_options *opts)
 
static char * ada_varobj_get_value_of_array_variable (struct value *value, struct type *type, struct value_print_options *opts)
 
static char * 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 char * ada_name_of_variable (const struct varobj *parent)
 
static char * ada_name_of_child (const struct varobj *parent, int index)
 
static char * 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 char * ada_value_of_variable (const struct varobj *var, enum varobj_display_formats format)
 
static int ada_value_is_changeable_p (const struct varobj *var)
 
static int 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

static char* ada_name_of_child ( const struct varobj parent,
int  index 
)
static
static char* ada_name_of_variable ( const struct varobj parent)
static

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

References c_varobj_ops, and lang_varobj_ops::name_of_variable.

static int ada_number_of_children ( const struct varobj var)
static

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

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

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

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

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

static int ada_value_has_mutated ( const struct varobj var,
struct value new_val,
struct type new_type 
)
static
static int ada_value_is_changeable_p ( const struct varobj var)
static
static struct value* ada_value_of_child ( const struct varobj parent,
int  index 
)
static
static char* ada_value_of_variable ( const struct varobj var,
enum varobj_display_formats  format 
)
static
static void ada_varobj_adjust_for_child_access ( struct value **  value,
struct type **  type 
)
static
static void ada_varobj_decode_var ( struct value **  value_ptr,
struct type **  type_ptr 
)
static
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,
char **  child_name,
struct value **  child_value,
struct type **  child_type,
char **  child_path_expr 
)
static
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,
char **  child_name,
struct value **  child_value,
struct type **  child_type,
char **  child_path_expr 
)
static

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

References ada_varobj_ind(), and xstrprintf().

Referenced by ada_varobj_describe_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,
char **  child_name,
struct value **  child_value,
struct type **  child_type,
char **  child_path_expr 
)
static
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,
char **  child_name,
struct value **  child_value,
struct type **  child_type,
char **  child_path_expr 
)
static
static int ada_varobj_get_array_number_of_children ( struct value parent_value,
struct type parent_type 
)
static
static char* 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 743 of file ada-varobj.c.

References ada_varobj_describe_child().

Referenced by ada_name_of_child(), and ada_value_has_mutated().

static int ada_varobj_get_number_of_children ( struct value parent_value,
struct type parent_type 
)
static
static char* 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 763 of file ada-varobj.c.

References ada_varobj_describe_child().

Referenced by ada_path_expr_of_child().

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

Definition at line 332 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().

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

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

References ada_varobj_describe_child().

Referenced by ada_type_of_child().

static char* ada_varobj_get_value_image ( struct value value,
struct value_print_options opts 
)
static
static char* ada_varobj_get_value_of_array_variable ( struct value value,
struct type type,
struct value_print_options opts 
)
static
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 782 of file ada-varobj.c.

References ada_varobj_describe_child().

Referenced by ada_value_of_child().

static char* ada_varobj_get_value_of_variable ( struct value value,
struct type type,
struct value_print_options opts 
)
static
static void ada_varobj_ind ( struct value parent_value,
struct type parent_type,
struct value **  child_value,
struct type **  child_type 
)
static
static char* ada_varobj_scalar_image ( struct type type,
LONGEST  val 
)
static
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
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

const struct lang_varobj_ops ada_varobj_ops
Initial value:
=
{
}
static char * ada_path_expr_of_child(const struct varobj *child)
Definition: ada-varobj.c:928
static struct value * ada_value_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:941
int varobj_default_is_path_expr_parent(const struct varobj *var)
Definition: varobj.c:1016
static struct type * ada_type_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:948
static int ada_value_has_mutated(const struct varobj *var, struct value *new_val, struct type *new_type)
Definition: ada-varobj.c:994
static int ada_value_is_changeable_p(const struct varobj *var)
Definition: ada-varobj.c:968
static char * ada_name_of_variable(const struct varobj *parent)
Definition: ada-varobj.c:915
static char * ada_value_of_variable(const struct varobj *var, enum varobj_display_formats format)
Definition: ada-varobj.c:955
static int ada_number_of_children(const struct varobj *var)
Definition: ada-varobj.c:909
static char * ada_name_of_child(const struct varobj *parent, int index)
Definition: ada-varobj.c:921

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