From fa4d0c4081f7337c0126a01f16959f7a4e864ff5 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 9 Oct 2013 22:10:14 +0800 Subject: Remove varobj_language_string, languages and varobj_languages This patch does some cleanups, removing some language-related stuff. Note that mi_cmd_var_info_expression uses varobj_language_string, which is redundant, because we can get language name from lang->la_natural_name. varobj_language_string doesn't have "Ada", which looks like a bug to me. With this patch applied, this problem doesn't exist, because the language name is got from the same place (field la_natural_name). gdb: 2013-11-07 Yao Qi * mi/mi-cmd-var.c: Include "language.h". (mi_cmd_var_info_expression): Get language name from language_defn. * varobj.c (varobj_language_string): Remove. (variable_language): Remove declaration. (languages): Remove. (varobj_get_language): Change the type of return value. (variable_language): Remove. * varobj.h (enum varobj_languages): Remove. (varobj_language_string): Remove declaration. (varobj_get_language): Update declaration. gdb/doc: 2013-11-07 Yao Qi * gdb.texinfo (GDB/MI Variable Objects): Update doc about the output of "-var-info-expression". --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 9803346..12ceb01 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2013-11-07 Yao Qi + + * gdb.texinfo (GDB/MI Variable Objects): Update doc about the + output of "-var-info-expression". + 2013-11-06 Pedro Alves * gdb.texinfo (Starting) : Mention diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 39498d7..80ddaf9 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -32402,7 +32402,8 @@ For example, if @code{a} is an array, and variable object @end smallexample @noindent -Here, the values of @code{lang} can be @code{@{"C" | "C++" | "Java"@}}. +Here, the value of @code{lang} is the language name, which can be +found in @ref{Supported Languages}. Note that the output of the @code{-var-list-children} command also includes those expressions, so the @code{-var-info-expression} command -- cgit v1.1