gdb/
authorYao Qi <yao@codesourcery.com>
Tue, 1 Oct 2013 13:28:59 +0000 (13:28 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 1 Oct 2013 13:28:59 +0000 (13:28 +0000)
* varobj.c (struct language_specific) <language>: Remove.
(languages): Update the initialization.

gdb/ChangeLog
gdb/varobj.c

index 9a77ebb79fc650f093bbbf6ee895dc38716def03..ad7c8b26abcde1b384c3f135d0f2acbc331b97df 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-01  Yao Qi  <yao@codesourcery.com>
+
+       * varobj.c (struct language_specific) <language>: Remove.
+       (languages): Update the initialization.
+
 2013-10-01  Yao Qi  <yao@codesourcery.com>
 
        * arm-wince-tdep.c: Remove inclusion of "solib.h" and
index ced3e2d45bc482737fac0da012f6de4b960bb16f..f613b1b774f1942dc4e89ad5207502a850604d11 100644 (file)
@@ -398,10 +398,6 @@ static int ada_value_has_mutated (struct varobj *var, struct value *new_val,
 
 struct language_specific
 {
-
-  /* The language of this variable.  */
-  enum varobj_languages language;
-
   /* The number of children of PARENT.  */
   int (*number_of_children) (struct varobj * parent);
 
@@ -458,7 +454,6 @@ struct language_specific
 static struct language_specific languages[vlang_end] = {
   /* Unknown (try treating as C).  */
   {
-   vlang_unknown,
    c_number_of_children,
    c_name_of_variable,
    c_name_of_child,
@@ -472,7 +467,6 @@ static struct language_specific languages[vlang_end] = {
   ,
   /* C */
   {
-   vlang_c,
    c_number_of_children,
    c_name_of_variable,
    c_name_of_child,
@@ -486,7 +480,6 @@ static struct language_specific languages[vlang_end] = {
   ,
   /* C++ */
   {
-   vlang_cplus,
    cplus_number_of_children,
    cplus_name_of_variable,
    cplus_name_of_child,
@@ -500,7 +493,6 @@ static struct language_specific languages[vlang_end] = {
   ,
   /* Java */
   {
-   vlang_java,
    java_number_of_children,
    java_name_of_variable,
    java_name_of_child,
@@ -513,7 +505,6 @@ static struct language_specific languages[vlang_end] = {
    NULL /* value_has_mutated */},
   /* Ada */
   {
-   vlang_ada,
    ada_number_of_children,
    ada_name_of_variable,
    ada_name_of_child,