From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25247 invoked by alias); 18 Sep 2013 13:55:30 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 25200 invoked by uid 89); 18 Sep 2013 13:55:30 -0000 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Sep 2013 13:55:30 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RDNS_NONE,SPF_HELO_FAIL autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1VMIE2-0006V0-0n from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 18 Sep 2013 06:55:26 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 18 Sep 2013 06:55:26 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.2.247.3; Wed, 18 Sep 2013 06:55:25 -0700 From: Yao Qi To: Subject: [PATCH 2/7] Remove vlang_unknown Date: Wed, 18 Sep 2013 13:55:00 -0000 Message-ID: <1379512482-31773-3-git-send-email-yao@codesourcery.com> In-Reply-To: <1379512482-31773-1-git-send-email-yao@codesourcery.com> References: <1379512482-31773-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00592.txt.bz2 'vlang_unknown' is not used at all. This patch is to remove it. gdb: 2013-09-18 Yao Qi * varobj.c (varobj_format_string): Remove "unknown". (languages): Remove the first element. * varobj.h (enum varobj_languages): Remove vlang_c. --- gdb/varobj.c | 15 +-------------- gdb/varobj.h | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) 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). */ -- 1.7.7.6