aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-10-01 13:40:27 +0000
committerYao Qi <yao@codesourcery.com>2013-10-01 13:40:27 +0000
commitc573f27374d04d64571b928d3e5e2ec901a6a05c (patch)
treea97623c2405fa5107e57a663907d7c8fcc2e2af6
parent562502581bbef655576a995ead836521425149f9 (diff)
downloadgdb-c573f27374d04d64571b928d3e5e2ec901a6a05c.zip
gdb-c573f27374d04d64571b928d3e5e2ec901a6a05c.tar.gz
gdb-c573f27374d04d64571b928d3e5e2ec901a6a05c.tar.bz2
gdb/
* varobj.c (varobj_format_string): Remove "unknown". (languages): Remove the first element. * varobj.h (enum varobj_languages): Remove vlang_c.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/varobj.c15
-rw-r--r--gdb/varobj.h2
3 files changed, 8 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ad7c8b2..7afaf46 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2013-10-01 Yao Qi <yao@codesourcery.com>
+ * varobj.c (varobj_format_string): Remove "unknown".
+ (languages): Remove the first element.
+ * varobj.h (enum varobj_languages): Remove vlang_c.
+
+2013-10-01 Yao Qi <yao@codesourcery.com>
+
* varobj.c (struct language_specific) <language>: Remove.
(languages): Update the initialization.
diff --git a/gdb/varobj.c b/gdb/varobj.c
index f613b1b..bcf62dc 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -62,7 +62,7 @@ char *varobj_format_string[] =
{ "natural", "binary", "decimal", "hexadecimal", "octal" };
/* String representations of gdb's known languages. */
-char *varobj_language_string[] = { "unknown", "C", "C++", "Java" };
+char *varobj_language_string[] = { "C", "C++", "Java" };
/* True if we want to allow Python-based pretty-printing. */
static int pretty_printing = 0;
@@ -452,19 +452,6 @@ struct language_specific
/* Array of known source language routines. */
static struct language_specific languages[vlang_end] = {
- /* Unknown (try treating as C). */
- {
- c_number_of_children,
- c_name_of_variable,
- c_name_of_child,
- c_path_expr_of_child,
- c_value_of_root,
- c_value_of_child,
- c_type_of_child,
- c_value_of_variable,
- default_value_is_changeable_p,
- NULL /* value_has_mutated */}
- ,
/* C */
{
c_number_of_children,
diff --git a/gdb/varobj.h b/gdb/varobj.h
index 05b2c94..d4abb99 100644
--- a/gdb/varobj.h
+++ b/gdb/varobj.h
@@ -55,7 +55,7 @@ extern char *varobj_format_string[];
/* Languages supported by this variable objects system. */
enum varobj_languages
{
- vlang_unknown = 0, vlang_c, vlang_cplus, vlang_java, vlang_ada, vlang_end
+ vlang_c = 0, vlang_cplus, vlang_java, vlang_ada, vlang_end
};
/* String representations of gdb's known languages (defined in varobj.c). */