GDB (xrefs)
Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/varobj.h File Reference
#include "symtab.h"
#include "gdbtypes.h"
#include "vec.h"

Go to the source code of this file.

Classes

struct  varobj_update_result_t
 
struct  varobj
 
struct  lang_varobj_ops
 

Macros

#define CPLUS_FAKE_CHILD(x)   ((x) != NULL && (x)->type == NULL && (x)->value == NULL)
 
#define default_varobj_ops   c_varobj_ops
 

Typedefs

typedef struct varobjvarobj_p
 
typedef struct varobj_update_result_t varobj_update_result
 

Enumerations

enum  varobj_display_formats {
  FORMAT_NATURAL, FORMAT_BINARY, FORMAT_DECIMAL, FORMAT_HEXADECIMAL,
  FORMAT_OCTAL
}
 
enum  varobj_type { USE_SPECIFIED_FRAME, USE_CURRENT_FRAME, USE_SELECTED_FRAME }
 
enum  varobj_scope_status { VAROBJ_IN_SCOPE = 0, VAROBJ_NOT_IN_SCOPE = 1, VAROBJ_INVALID = 2 }
 

Functions

 DEF_VEC_P (varobj_p)
 
 DEF_VEC_O (varobj_update_result)
 
struct varobjvarobj_create (char *objname, char *expression, CORE_ADDR frame, enum varobj_type type)
 
char * varobj_gen_name (void)
 
struct varobjvarobj_get_handle (char *name)
 
char * varobj_get_objname (const struct varobj *var)
 
char * varobj_get_expression (const struct varobj *var)
 
int varobj_delete (struct varobj *var, char ***dellist, int only_children)
 
enum varobj_display_formats varobj_set_display_format (struct varobj *var, enum varobj_display_formats format)
 
enum varobj_display_formats varobj_get_display_format (const struct varobj *var)
 
int varobj_get_thread_id (const struct varobj *var)
 
void varobj_set_frozen (struct varobj *var, int frozen)
 
int varobj_get_frozen (const struct varobj *var)
 
void varobj_get_child_range (const struct varobj *var, int *from, int *to)
 
void varobj_set_child_range (struct varobj *var, int from, int to)
 
char * varobj_get_display_hint (const struct varobj *var)
 
int varobj_get_num_children (struct varobj *var)
 
 VEC (varobj_p)*varobj_list_children(struct varobj *var
 
char * varobj_get_type (struct varobj *var)
 
struct typevarobj_get_gdb_type (const struct varobj *var)
 
char * varobj_get_path_expr (const struct varobj *var)
 
const struct language_defnvarobj_get_language (const struct varobj *var)
 
int varobj_get_attributes (const struct varobj *var)
 
char * varobj_get_formatted_value (struct varobj *var, enum varobj_display_formats format)
 
char * varobj_get_value (struct varobj *var)
 
int varobj_set_value (struct varobj *var, char *expression)
 
void all_root_varobjs (void(*func)(struct varobj *var, void *data), void *data)
 
 VEC (varobj_update_result)*varobj_update(struct varobj **varp
 
void varobj_invalidate (void)
 
int varobj_editable_p (const struct varobj *var)
 
int varobj_floating_p (const struct varobj *var)
 
void varobj_set_visualizer (struct varobj *var, const char *visualizer)
 
void varobj_enable_pretty_printing (void)
 
int varobj_has_more (const struct varobj *var, int to)
 
int varobj_is_dynamic_p (const struct varobj *var)
 
struct cleanupvarobj_ensure_python_env (const struct varobj *var)
 
int varobj_default_value_is_changeable_p (const struct varobj *var)
 
int varobj_value_is_changeable_p (const struct varobj *var)
 
struct typevarobj_get_value_type (const struct varobj *var)
 
int varobj_is_anonymous_child (const struct varobj *child)
 
const struct varobjvarobj_get_path_expr_parent (const struct varobj *var)
 
char * varobj_value_get_print_value (struct value *value, enum varobj_display_formats format, const struct varobj *var)
 
void varobj_formatted_print_options (struct value_print_options *opts, enum varobj_display_formats format)
 
void varobj_restrict_range (VEC(varobj_p)*children, int *from, int *to)
 
int varobj_default_is_path_expr_parent (const struct varobj *var)
 

Variables

char * varobj_format_string []
 
const struct lang_varobj_ops c_varobj_ops
 
const struct lang_varobj_ops cplus_varobj_ops
 
const struct lang_varobj_ops java_varobj_ops
 
const struct lang_varobj_ops ada_varobj_ops
 
intfrom
 
int intto
 
int is_explicit
 

Macro Definition Documentation

#define CPLUS_FAKE_CHILD (   x)    ((x) != NULL && (x)->type == NULL && (x)->value == NULL)
#define default_varobj_ops   c_varobj_ops

Definition at line 233 of file varobj.h.

Typedef Documentation

typedef struct varobj* varobj_p

Definition at line 59 of file varobj.h.

Enumeration Type Documentation

Enumerator
FORMAT_NATURAL 
FORMAT_BINARY 
FORMAT_DECIMAL 
FORMAT_HEXADECIMAL 
FORMAT_OCTAL 

Definition at line 25 of file varobj.h.

Enumerator
VAROBJ_IN_SCOPE 
VAROBJ_NOT_IN_SCOPE 
VAROBJ_INVALID 

Definition at line 42 of file varobj.h.

Enumerator
USE_SPECIFIED_FRAME 
USE_CURRENT_FRAME 
USE_SELECTED_FRAME 

Definition at line 34 of file varobj.h.

Function Documentation

void all_root_varobjs ( void(*)(struct varobj *var, void *data)  func,
void *  data 
)

Definition at line 2735 of file varobj.c.

References varobj_root::next, and varobj_root::rootvar.

Referenced by mi_cmd_var_update(), and varobj_invalidate().

DEF_VEC_O ( varobj_update_result  )
DEF_VEC_P ( varobj_p  )
struct varobj* varobj_create ( char *  objname,
char *  expression,
CORE_ADDR  frame,
enum varobj_type  type 
)
int varobj_default_is_path_expr_parent ( const struct varobj var)

Definition at line 1016 of file varobj.c.

int varobj_default_value_is_changeable_p ( const struct varobj var)
int varobj_delete ( struct varobj var,
char ***  dellist,
int  only_children 
)
int varobj_editable_p ( const struct varobj var)
void varobj_enable_pretty_printing ( void  )

Definition at line 59 of file varobj.c.

References pretty_printing.

Referenced by mi_cmd_enable_pretty_printing().

struct cleanup* varobj_ensure_python_env ( const struct varobj var)
int varobj_floating_p ( const struct varobj var)

Definition at line 2697 of file varobj.c.

References varobj_root::floating, and varobj::root.

Referenced by mi_cmd_var_update_iter().

void varobj_formatted_print_options ( struct value_print_options opts,
enum varobj_display_formats  format 
)
char* varobj_gen_name ( void  )

Definition at line 450 of file varobj.c.

References xstrprintf().

Referenced by mi_cmd_var_create().

int varobj_get_attributes ( const struct varobj var)

Definition at line 1060 of file varobj.c.

References varobj_editable_p().

Referenced by mi_cmd_var_show_attributes().

void varobj_get_child_range ( const struct varobj var,
int from,
int to 
)

Definition at line 1526 of file varobj.c.

References varobj::from, and varobj::to.

Referenced by varobj_update_one().

enum varobj_display_formats varobj_get_display_format ( const struct varobj var)

Definition at line 605 of file varobj.c.

References varobj::format.

Referenced by mi_cmd_var_show_format().

char* varobj_get_display_hint ( const struct varobj var)
char* varobj_get_expression ( const struct varobj var)

Definition at line 500 of file varobj.c.

References name_of_variable().

Referenced by mi_cmd_var_info_expression(), and print_varobj().

char* varobj_get_formatted_value ( struct varobj var,
enum varobj_display_formats  format 
)

Definition at line 1080 of file varobj.c.

References my_value_of_variable().

Referenced by mi_cmd_var_evaluate_expression().

int varobj_get_frozen ( const struct varobj var)

Definition at line 670 of file varobj.c.

References varobj::frozen.

Referenced by print_varobj().

struct type* varobj_get_gdb_type ( const struct varobj var)

Definition at line 996 of file varobj.c.

References varobj::type.

Referenced by c_is_path_expr_parent(), and mi_print_value_p().

struct varobj* varobj_get_handle ( char *  name)
const struct language_defn* varobj_get_language ( const struct varobj var)

Definition at line 1054 of file varobj.c.

References varobj_root::exp, expression::language_defn, and varobj::root.

Referenced by mi_cmd_var_info_expression().

int varobj_get_num_children ( struct varobj var)
char* varobj_get_objname ( const struct varobj var)

Definition at line 491 of file varobj.c.

References varobj::obj_name.

Referenced by print_varobj(), and varobj_update_one().

char* varobj_get_path_expr ( const struct varobj var)
const struct varobj* varobj_get_path_expr_parent ( const struct varobj var)

Definition at line 1024 of file varobj.c.

References is_path_expr_parent(), is_root_p(), and varobj::parent.

Referenced by c_describe_child(), and cplus_describe_child().

int varobj_get_thread_id ( const struct varobj var)

Definition at line 648 of file varobj.c.

References varobj::root, varobj_root::thread_id, and varobj_root::valid_block.

Referenced by mi_cmd_var_update_iter(), and print_varobj().

char* varobj_get_type ( struct varobj var)
char* varobj_get_value ( struct varobj var)
struct type* varobj_get_value_type ( const struct varobj var)
int varobj_has_more ( const struct varobj var,
int  to 
)
void varobj_invalidate ( void  )

Definition at line 2786 of file varobj.c.

References all_root_varobjs(), and varobj_invalidate_iter().

Referenced by clear_symtab_users().

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().

int varobj_is_dynamic_p ( const struct varobj var)
void varobj_restrict_range ( VEC(varobj_p)*  children,
int from,
int to 
)

Definition at line 681 of file varobj.c.

References to, and VEC_length.

Referenced by ada_value_has_mutated(), and VEC().

void varobj_set_child_range ( struct varobj var,
int  from,
int  to 
)

Definition at line 1536 of file varobj.c.

References varobj::from, from, varobj::to, and to.

Referenced by mi_cmd_var_set_update_range().

enum varobj_display_formats varobj_set_display_format ( struct varobj var,
enum varobj_display_formats  format 
)
void varobj_set_frozen ( struct varobj var,
int  frozen 
)

Definition at line 657 of file varobj.c.

References varobj::frozen.

Referenced by mi_cmd_var_set_frozen().

int varobj_set_value ( struct varobj var,
char *  expression 
)
void varobj_set_visualizer ( struct varobj var,
const char *  visualizer 
)
char* varobj_value_get_print_value ( struct value value,
enum varobj_display_formats  format,
const struct varobj var 
)
int varobj_value_is_changeable_p ( const struct varobj var)
VEC ( varobj_p  )

Variable Documentation

const struct lang_varobj_ops ada_varobj_ops

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

const struct lang_varobj_ops c_varobj_ops

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

Referenced by ada_name_of_variable().

const struct lang_varobj_ops cplus_varobj_ops
int* from
int is_explicit

Definition at line 306 of file varobj.h.

const struct lang_varobj_ops java_varobj_ops

Definition at line 95 of file jv-varobj.c.

int int* to
char* varobj_format_string[]

Definition at line 52 of file varobj.c.

Referenced by mi_cmd_var_set_format(), and mi_cmd_var_show_format().