GDB (xrefs)
Functions
/home/stan/gdb/src/gdb/ada-varobj.c File Reference
#include "defs.h"
#include "ada-varobj.h"
#include "ada-lang.h"
#include "language.h"
#include "valprint.h"

Go to the source code of this file.

Functions

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)
int ada_varobj_get_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)
char * ada_varobj_get_name_of_child (struct value *parent_value, struct type *parent_type, const char *parent_name, int child_index)
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)
struct valueada_varobj_get_value_of_child (struct value *parent_value, struct type *parent_type, const char *parent_name, int child_index)
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)
char * ada_varobj_get_value_of_variable (struct value *value, struct type *type, struct value_print_options *opts)

Function Documentation

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 530 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]
char* ada_varobj_get_name_of_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
int  child_index 
)

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

References ada_varobj_describe_child().

Referenced by ada_name_of_child(), and ada_value_has_mutated().

int ada_varobj_get_number_of_children ( struct value parent_value,
struct type parent_type 
)
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 
)

Definition at line 745 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 308 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]
struct type* ada_varobj_get_type_of_child ( struct value parent_value,
struct type parent_type,
int  child_index 
) [read]

Definition at line 781 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]
struct value* ada_varobj_get_value_of_child ( struct value parent_value,
struct type parent_type,
const char *  parent_name,
int  child_index 
) [read]

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

References ada_varobj_describe_child().

Referenced by ada_value_of_child().

char* ada_varobj_get_value_of_variable ( struct value value,
struct type type,
struct value_print_options opts 
)
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]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines