1 /* GDB variable objects API.
2 Copyright (C) 1999, 2000, 2001, 2005, 2007 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
23 /* Enumeration for the format types */
24 enum varobj_display_formats
26 FORMAT_NATURAL, /* What gdb actually calls 'natural' */
27 FORMAT_BINARY, /* Binary display */
28 FORMAT_DECIMAL, /* Decimal display */
29 FORMAT_HEXADECIMAL, /* Hex display */
30 FORMAT_OCTAL /* Octal display */
35 USE_SPECIFIED_FRAME, /* Use the frame passed to varobj_create */
36 USE_CURRENT_FRAME, /* Use the current frame */
37 USE_SELECTED_FRAME /* Always reevaluate in selected frame */
40 /* Error return values for varobj_update function. */
41 enum varobj_update_error
43 NOT_IN_SCOPE = -1, /* varobj not in scope, can not be updated. */
44 TYPE_CHANGED = -2, /* varobj type has changed. */
45 INVALID = -3, /* varobj is not valid anymore. */
48 /* String representations of gdb's format codes (defined in varobj.c) */
49 extern char *varobj_format_string[];
51 /* Languages supported by this variable objects system. */
54 vlang_unknown = 0, vlang_c, vlang_cplus, vlang_java, vlang_end
57 /* String representations of gdb's known languages (defined in varobj.c) */
58 extern char *varobj_language_string[];
60 /* Struct thar describes a variable object instance */
65 extern struct varobj *varobj_create (char *objname,
66 char *expression, CORE_ADDR frame,
67 enum varobj_type type);
69 extern char *varobj_gen_name (void);
71 extern struct varobj *varobj_get_handle (char *name);
73 extern char *varobj_get_objname (struct varobj *var);
75 extern char *varobj_get_expression (struct varobj *var);
77 extern int varobj_delete (struct varobj *var, char ***dellist,
80 extern enum varobj_display_formats varobj_set_display_format (
82 enum varobj_display_formats format);
84 extern enum varobj_display_formats varobj_get_display_format (
87 extern void varobj_set_frozen (struct varobj *var, int frozen);
89 extern int varobj_get_frozen (struct varobj *var);
91 extern int varobj_get_num_children (struct varobj *var);
93 extern int varobj_list_children (struct varobj *var,
94 struct varobj ***childlist);
96 extern char *varobj_get_type (struct varobj *var);
98 extern struct type *varobj_get_gdb_type (struct varobj *var);
100 extern char *varobj_get_path_expr (struct varobj *var);
102 extern enum varobj_languages varobj_get_language (struct varobj *var);
104 extern int varobj_get_attributes (struct varobj *var);
106 extern char *varobj_get_value (struct varobj *var);
108 extern int varobj_set_value (struct varobj *var, char *expression);
110 extern int varobj_list (struct varobj ***rootlist);
112 extern int varobj_update (struct varobj **varp, struct varobj ***changelist,
115 extern void varobj_invalidate (void);
117 #endif /* VAROBJ_H */