GDB (xrefs)
Macros | Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/c-varobj.c File Reference
#include "defs.h"
#include "value.h"
#include "varobj.h"
#include "gdbthread.h"
#include "valprint.h"

Go to the source code of this file.

Macros

#define ANONYMOUS_STRUCT_NAME   _("<anonymous struct>")
 
#define ANONYMOUS_UNION_NAME   _("<anonymous union>")
 

Enumerations

enum  vsections { v_public = 0, v_private, v_protected }
 
enum  accessibility { private_field, protected_field, public_field }
 

Functions

static void cplus_class_num_children (struct type *type, int children[3])
 
int varobj_is_anonymous_child (const struct varobj *child)
 
static void adjust_value_for_child_access (struct value **value, struct type **type, int *was_ptr, int lookup_actual_type)
 
static int c_is_path_expr_parent (const struct varobj *var)
 
static int c_number_of_children (const struct varobj *var)
 
static char * c_name_of_variable (const struct varobj *parent)
 
static struct valuevalue_struct_element_index (struct value *value, int type_index)
 
static void c_describe_child (const struct varobj *parent, int index, char **cname, struct value **cvalue, struct type **ctype, char **cfull_expression)
 
static char * c_name_of_child (const struct varobj *parent, int index)
 
static char * c_path_expr_of_child (const struct varobj *child)
 
static struct valuec_value_of_child (const struct varobj *parent, int index)
 
static struct typec_type_of_child (const struct varobj *parent, int index)
 
static struct typeget_type (const struct varobj *var)
 
static char * c_value_of_variable (const struct varobj *var, enum varobj_display_formats format)
 
static int cplus_number_of_children (const struct varobj *var)
 
static char * cplus_name_of_variable (const struct varobj *parent)
 
static int match_accessibility (struct type *type, int index, enum accessibility acc)
 
static void cplus_describe_child (const struct varobj *parent, int index, char **cname, struct value **cvalue, struct type **ctype, char **cfull_expression)
 
static char * cplus_name_of_child (const struct varobj *parent, int index)
 
static char * cplus_path_expr_of_child (const struct varobj *child)
 
static struct valuecplus_value_of_child (const struct varobj *parent, int index)
 
static struct typecplus_type_of_child (const struct varobj *parent, int index)
 
static char * cplus_value_of_variable (const struct varobj *var, enum varobj_display_formats format)
 

Variables

const struct lang_varobj_ops c_varobj_ops
 
const struct lang_varobj_ops cplus_varobj_ops
 

Macro Definition Documentation

#define ANONYMOUS_STRUCT_NAME   _("<anonymous struct>")

Definition at line 27 of file c-varobj.c.

Referenced by c_describe_child(), cplus_describe_child(), and varobj_is_anonymous_child().

#define ANONYMOUS_UNION_NAME   _("<anonymous union>")

Definition at line 28 of file c-varobj.c.

Referenced by c_describe_child(), cplus_describe_child(), and varobj_is_anonymous_child().

Enumeration Type Documentation

Enumerator
private_field 
protected_field 
public_field 

Definition at line 686 of file c-varobj.c.

enum vsections
Enumerator
v_public 
v_private 
v_protected 

Definition at line 560 of file c-varobj.c.

Function Documentation

static void adjust_value_for_child_access ( struct value **  value,
struct type **  type,
int was_ptr,
int  lookup_actual_type 
)
static
static void c_describe_child ( const struct varobj parent,
int  index,
char **  cname,
struct value **  cvalue,
struct type **  ctype,
char **  cfull_expression 
)
static
static int c_is_path_expr_parent ( const struct varobj var)
static
static char* c_name_of_child ( const struct varobj parent,
int  index 
)
static

Definition at line 431 of file c-varobj.c.

References c_describe_child(), and name.

static char* c_name_of_variable ( const struct varobj parent)
static

Definition at line 235 of file c-varobj.c.

References varobj::name.

Referenced by cplus_name_of_variable().

static int c_number_of_children ( const struct varobj var)
static
static char* c_path_expr_of_child ( const struct varobj child)
static

Definition at line 440 of file c-varobj.c.

References c_describe_child(), varobj::index, and varobj::parent.

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

Definition at line 459 of file c-varobj.c.

References c_describe_child(), and type.

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

Definition at line 450 of file c-varobj.c.

References c_describe_child().

static char* c_value_of_variable ( const struct varobj var,
enum varobj_display_formats  format 
)
static
static void cplus_class_num_children ( struct type type,
int  children[3] 
)
static
static void cplus_describe_child ( const struct varobj parent,
int  index,
char **  cname,
struct value **  cvalue,
struct type **  ctype,
char **  cfull_expression 
)
static
static char* cplus_name_of_child ( const struct varobj parent,
int  index 
)
static

Definition at line 907 of file c-varobj.c.

References cplus_describe_child(), and name.

static char* cplus_name_of_variable ( const struct varobj parent)
static

Definition at line 681 of file c-varobj.c.

References c_name_of_variable().

static int cplus_number_of_children ( const struct varobj var)
static
static char* cplus_path_expr_of_child ( const struct varobj child)
static

Definition at line 916 of file c-varobj.c.

References cplus_describe_child(), varobj::index, and varobj::parent.

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

Definition at line 935 of file c-varobj.c.

References cplus_describe_child(), and type.

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

Definition at line 926 of file c-varobj.c.

References cplus_describe_child().

static char* cplus_value_of_variable ( const struct varobj var,
enum varobj_display_formats  format 
)
static

Definition at line 944 of file c-varobj.c.

References c_value_of_variable(), and CPLUS_FAKE_CHILD.

static struct type* get_type ( const struct varobj var)
static

Definition at line 471 of file c-varobj.c.

References check_typedef(), type, and varobj::type.

Referenced by c_value_of_variable().

static int match_accessibility ( struct type type,
int  index,
enum accessibility  acc 
)
static
static struct value* value_struct_element_index ( struct value value,
int  type_index 
)
static
int varobj_is_anonymous_child ( const struct varobj child)

Definition at line 38 of file c-varobj.c.

References ANONYMOUS_STRUCT_NAME, ANONYMOUS_UNION_NAME, and varobj::name.

Referenced by create_child_with_value().

Variable Documentation

const struct lang_varobj_ops c_varobj_ops
Initial value:
=
{
NULL,
}
int varobj_default_value_is_changeable_p(const struct varobj *var)
Definition: varobj.c:2706
static char * c_name_of_child(const struct varobj *parent, int index)
Definition: c-varobj.c:431
static struct value * c_value_of_child(const struct varobj *parent, int index)
Definition: c-varobj.c:450
static char * c_name_of_variable(const struct varobj *parent)
Definition: c-varobj.c:235
static int c_is_path_expr_parent(const struct varobj *var)
Definition: c-varobj.c:135
static struct type * c_type_of_child(const struct varobj *parent, int index)
Definition: c-varobj.c:459
static char * c_value_of_variable(const struct varobj *var, enum varobj_display_formats format)
Definition: c-varobj.c:483
static int c_number_of_children(const struct varobj *var)
Definition: c-varobj.c:184
static char * c_path_expr_of_child(const struct varobj *child)
Definition: c-varobj.c:440

Definition at line 545 of file c-varobj.c.

Referenced by ada_name_of_variable().

const struct lang_varobj_ops cplus_varobj_ops
Initial value:
=
{
NULL,
}
int varobj_default_value_is_changeable_p(const struct varobj *var)
Definition: varobj.c:2706
static char * cplus_value_of_variable(const struct varobj *var, enum varobj_display_formats format)
Definition: c-varobj.c:944
static char * cplus_path_expr_of_child(const struct varobj *child)
Definition: c-varobj.c:916
static struct value * cplus_value_of_child(const struct varobj *parent, int index)
Definition: c-varobj.c:926
static char * cplus_name_of_child(const struct varobj *parent, int index)
Definition: c-varobj.c:907
static int c_is_path_expr_parent(const struct varobj *var)
Definition: c-varobj.c:135
static struct type * cplus_type_of_child(const struct varobj *parent, int index)
Definition: c-varobj.c:935
static char * cplus_name_of_variable(const struct varobj *parent)
Definition: c-varobj.c:681
static int cplus_number_of_children(const struct varobj *var)
Definition: c-varobj.c:568

Definition at line 959 of file c-varobj.c.

Referenced by java_name_of_child(), java_name_of_variable(), java_number_of_children(), java_type_of_child(), java_value_of_child(), and java_value_of_variable().