This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/7] Remove field language in struct language_specific
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Wed, 18 Sep 2013 21:54:36 +0800
- Subject: [PATCH 1/7] Remove field language in struct language_specific
- Authentication-results: sourceware.org; auth=none
- References: <1379512482-31773-1-git-send-email-yao at codesourcery dot com>
Field 'language' in struct language_specific is not used. This patch
is to remove it.
gdb:
2013-09-18 Yao Qi <yao@codesourcery.com>
* varobj.c (struct language_specific) <language>: Remove.
(languages): Update the initialization.
---
gdb/varobj.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/gdb/varobj.c b/gdb/varobj.c
index ced3e2d..f613b1b 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -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,
--
1.7.7.6