gdb/
authorYao Qi <yao@codesourcery.com>
Tue, 1 Oct 2013 13:40:27 +0000 (13:40 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 1 Oct 2013 13:40:27 +0000 (13:40 +0000)
* varobj.c (varobj_format_string): Remove "unknown".
(languages): Remove the first element.
* varobj.h (enum varobj_languages): Remove vlang_c.

gdb/ChangeLog
gdb/varobj.c
gdb/varobj.h

index ad7c8b26abcde1b384c3f135d0f2acbc331b97df..7afaf46cc9b188f656292471d26c52b79ee395f0 100644 (file)
@@ -1,3 +1,9 @@
+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.
index f613b1b774f1942dc4e89ad5207502a850604d11..bcf62dca0124d2ca7b880058e45b7d294786a4ad 100644 (file)
@@ -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,
index 05b2c9418c4ebe827097fd6cbc1dbb818f274e95..d4abb99762660f0bdc6af61ad66849a89150f419 100644 (file)
@@ -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).  */