diff options
author | Marc Khouzam <marc.khouzam@ericsson.com> | 2008-04-09 13:29:55 +0000 |
---|---|---|
committer | Marc Khouzam <marc.khouzam@ericsson.com> | 2008-04-09 13:29:55 +0000 |
commit | de051565dfd9173f9ca885ac8e294ae2c90e409c (patch) | |
tree | 833f79330dea8f31531d2fba050483a361efe667 /gdb/varobj.h | |
parent | cdb0b8f5655411f9926c49ae39386430d3df67b0 (diff) | |
download | gdb-de051565dfd9173f9ca885ac8e294ae2c90e409c.zip gdb-de051565dfd9173f9ca885ac8e294ae2c90e409c.tar.gz gdb-de051565dfd9173f9ca885ac8e294ae2c90e409c.tar.bz2 |
gdb/ChangeLog
2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-cmd-var.c: Include "mi-getopt.h".
(mi_parse_format): New. Factored out from mi_cmd_var_set_format.
(mi_cmd_var_set_format): Use new mi_parse_format.
(mi_cmd_var_evaluate_expression): Support for -f option to specify
format.
* Makefile.in (mi-cmd-var.o): Update dependencies.
* varobj.h (varobj_get_formatted_value): Declare.
* varobj.c (my_value_of_variable): Added format parameter.
(cplus_value_of_variable): Likewise.
(java_value_of_variable): Likewise.
(c_value_of_variable): Likewise. Evaluate expression based
on format parameter.
(struct language_specific): Add format parameter to function member
*value_of_variable.
(varobj_get_formatted_value): New.
(varobj_get_value): Added format parameter to method call.
gdb/doc/ChangeLog
2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
* gdb.texinfo (GDB/MI Variable Objects): Add anchor to
-var-set-format. Add -f option to -var-evaluate-expression.
gdb/testsuite/ChangeLog
2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
* gdb.mi/mi2-var-display.exp: Added tests for the new -f
option of -var-evaluate-expression.
* gdb.mi/mi2-var-display.exp: Likewise.
Diffstat (limited to 'gdb/varobj.h')
-rw-r--r-- | gdb/varobj.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/varobj.h b/gdb/varobj.h index 0926d72..4fc7d1e 100644 --- a/gdb/varobj.h +++ b/gdb/varobj.h @@ -111,6 +111,9 @@ extern enum varobj_languages varobj_get_language (struct varobj *var); extern int varobj_get_attributes (struct varobj *var); +extern char *varobj_get_formatted_value (struct varobj *var, + enum varobj_display_formats format); + extern char *varobj_get_value (struct varobj *var); extern int varobj_set_value (struct varobj *var, char *expression); |